100 lines
4.2 KiB
Plaintext
100 lines
4.2 KiB
Plaintext
|
// File: STM32H7x3.dbgconf
|
||
|
// Version: 1.0.0
|
||
|
// Note: refer to STM32H7x3 reference manual (RM0433)
|
||
|
// refer to STM32H753xI STM32H743xI datasheets
|
||
|
|
||
|
// <<< Use Configuration Wizard in Context Menu >>>
|
||
|
|
||
|
// <h> DBGMCU configuration register (DBGMCU_CR)
|
||
|
// <o.28> TRGOEN <i> External trigger output enable
|
||
|
// <o.8> DBGSTBY_D3 <i> Allow debug in D3 Standby mode
|
||
|
// <o.7> DBGSTOP_D3 <i> Allow debug in D3 Stop mode
|
||
|
// <o.2> DBGSTBY_D1 <i> Allow D1 domain debug in Standby mode
|
||
|
// <o.1> DBGSTOP_D1 <i> Allow D1 domain debug in Stop mode
|
||
|
// <o.0> DBGSLEEP_D1 <i> Allow D1 domain debug in Sleep mode
|
||
|
// </h>
|
||
|
DbgMCU_CR = 0x00000000;
|
||
|
|
||
|
// <h> DBGMCU D1APB1 peripheral freeze register (DBGMCU_D1APB1FZ1)
|
||
|
// <i> Reserved bits must be kept at reset value
|
||
|
// <o.6> WWDG1 <i> WWDG1 stop in debug
|
||
|
// </h>
|
||
|
DbgMCU_D1APB1_Fz = 0x00000000;
|
||
|
|
||
|
// <h> DBGMCU D2APB1L peripheral freeze register (DBGMCU_D2APB1LFZ1)
|
||
|
// <i> Reserved bits must be kept at reset value
|
||
|
// <o.23> I2C3 <i> I2C3 SMBUS timeout stop in debug
|
||
|
// <o.22> I2C2 <i> I2C2 SMBUS timeout stop in debug
|
||
|
// <o.21> I2C1 <i> I2C1 SMBUS timeout stop in debug
|
||
|
// <o.9> LPTIM1 <i> LPTIM1 stop in debug
|
||
|
// <o.8> TIM14 <i> TIM14 stop in debug
|
||
|
// <o.7> TIM13 <i> TIM13 stop in debug
|
||
|
// <o.6> TIM12 <i> TIM12 stop in debug
|
||
|
// <o.5> TIM7 <i> TIM7 stop in debug
|
||
|
// <o.4> TIM6 <i> TIM6 stop in debug
|
||
|
// <o.3> TIM5 <i> TIM5 stop in debug
|
||
|
// <o.2> TIM4 <i> TIM4 stop in debug
|
||
|
// <o.1> TIM3 <i> TIM3 stop in debug
|
||
|
// <o.0> TIM2 <i> TIM2 stop in debug
|
||
|
// </h>
|
||
|
DbgMCU_D2APB1L_Fz = 0x00000000;
|
||
|
|
||
|
// <h> DBGMCU D2APB1H peripheral freeze register (DBGMCU_D2APB1HFZ1)
|
||
|
// <i> Reserved bits must be kept at reset value
|
||
|
// <o.8> FDCAN <i> FDCAN stop in debug
|
||
|
// </h>
|
||
|
DbgMCU_D2APB1H_Fz = 0x00000000;
|
||
|
|
||
|
// <h> DBGMCU D2APB2 peripheral freeze register (DBGMCU_D2APB2FZ1)
|
||
|
// <i> Reserved bits must be kept at reset value
|
||
|
// <o.29> HRTIM <i> HRTIM stop in debug
|
||
|
// <o.18> TIM17 <i> TIM17 stop in debug
|
||
|
// <o.17> TIM16 <i> TIM16 stop in debug
|
||
|
// <o.16> TIM15 <i> TIM15 stop in debug
|
||
|
// <o.1> TIM8 <i> TIM8 stop in debug
|
||
|
// <o.0> TIM1 <i> TIM1 stop in debug
|
||
|
// </h>
|
||
|
DbgMCU_D2APB2_Fz = 0x00000000;
|
||
|
|
||
|
// <h> DBGMCU D3APB4 peripheral freeze register (DBGMCU_D3APB4FZ1)
|
||
|
// <i> Reserved bits must be kept at reset value
|
||
|
// <o.19> WDGLSD2 <i> LS watchdog for D2 stop in debug
|
||
|
// <o.18> WDGLSD1 <i> LS watchdog for D1 stop in debug
|
||
|
// <o.16> RTC <i> RTC stop in debug
|
||
|
// <o.12> LPTIM5 <i> LPTIM5 stop in debug
|
||
|
// <o.11> LPTIM4 <i> LPTIM4 stop in debug
|
||
|
// <o.10> LPTIM3 <i> LPTIM2 stop in debug
|
||
|
// <o.9> LPTIM2 <i> LPTIM2 stop in debug
|
||
|
// <o.7> I2C4 <i> I2C4 SMBUS timeout stop in debug
|
||
|
// </h>
|
||
|
DbgMCU_D3APB4_Fz = 0x00000000;
|
||
|
|
||
|
// <h> TPIU Pin Routing (TRACECLK fixed on Pin PE2)
|
||
|
// <i> TRACECLK: Pin PE2
|
||
|
// <o1> TRACED0
|
||
|
// <i> ETM Trace Data 0
|
||
|
// <0x00040003=> Pin PE3
|
||
|
// <0x00020001=> Pin PC1
|
||
|
// <0x0006000D=> Pin PG13
|
||
|
// <o2> TRACED1
|
||
|
// <i> ETM Trace Data 1
|
||
|
// <0x00040004=> Pin PE4
|
||
|
// <0x00020008=> Pin PC8
|
||
|
// <0x0006000E=> Pin PG14
|
||
|
// <o3> TRACED2
|
||
|
// <i> ETM Trace Data 2
|
||
|
// <0x00040005=> Pin PE5
|
||
|
// <0x00030002=> Pin PD2
|
||
|
// <o4> TRACED3
|
||
|
// <i> ETM Trace Data 3
|
||
|
// <0x00040006=> Pin PE6
|
||
|
// <0x0002000C=> Pin PC12
|
||
|
// </h>
|
||
|
TraceClk_Pin = 0x00040002;
|
||
|
TraceD0_Pin = 0x00040003;
|
||
|
TraceD1_Pin = 0x00040004;
|
||
|
TraceD2_Pin = 0x00040005;
|
||
|
TraceD3_Pin = 0x00040006;
|
||
|
|
||
|
// <<< end of configuration section >>>
|