|
| 1 | +// File: STM32U535_545_575_585_59x_5Ax.dbgconf |
| 2 | +// Version: 1.0.0 |
| 3 | +// Note: refer to STM32U5 reference manual (RM0456) |
| 4 | +// refer to STM32U535xx datasheet (DS14217) |
| 5 | +// STM32U545xx datasheet (DS14216) |
| 6 | +// STM32U575xx datasheet (DS13737) |
| 7 | +// STM32U585xx datasheet (DS13086) |
| 8 | +// STM32U59xxx datasheet (DS13633) |
| 9 | +// STM32U5Axxx datasheet (DS13543) |
| 10 | + |
| 11 | +// <<< Use Configuration Wizard in Context Menu >>> |
| 12 | + |
| 13 | +// <h> Debug MCU configuration register (DBGMCU_CR) |
| 14 | +// <o.2> DBG_STANDBY <i> Debug standby mode |
| 15 | +// <o.1> DBG_STOP <i> Debug stop mode |
| 16 | +// </h> |
| 17 | +DbgMCU_CR = 0x00000006; |
| 18 | + |
| 19 | +// <h> Debug MCU APB1L freeze register (DBGMCU_APB1LFZR) |
| 20 | +// <i> Reserved bits must be kept at reset value |
| 21 | +// <o.22> DBG_I2C2_STOP <i> I2C2 SMBUS timeout is frozen while CPU is in debug mode |
| 22 | +// <o.21> DBG_I2C1_STOP <i> I2C1 SMBUS timeout is frozen while CPU is in debug mode |
| 23 | +// <o.12> DBG_IWDG_STOP <i> Debug independent watchdog is frozen while CPU is in debug mode |
| 24 | +// <o.11> DBG_WWDG_STOP <i> Debug window watchdog is frozen while CPU is in debug mode |
| 25 | +// <o.5> DBG_TIM7_STOP <i> TIM7 is frozen while CPU is in debug mode |
| 26 | +// <o.4> DBG_TIM6_STOP <i> TIM6 is frozen while CPU is in debug mode |
| 27 | +// <o.3> DBG_TIM5_STOP <i> TIM5 is frozen while CPU is in debug mode |
| 28 | +// <o.2> DBG_TIM4_STOP <i> TIM4 is frozen while CPU is in debug mode |
| 29 | +// <o.1> DBG_TIM3_STOP <i> TIM3 is frozen while CPU is in debug mode |
| 30 | +// <o.0> DBG_TIM2_STOP <i> TIM2 is frozen while CPU is in debug mode |
| 31 | +// </h> |
| 32 | +DbgMCU_APB1L_Fz = 0x00000000; |
| 33 | + |
| 34 | +// <h> Debug MCU APB1H freeze register (DBGMCU_APB1HFZR) |
| 35 | +// <i> Reserved bits must be kept at reset value |
| 36 | +// <o.7> DBG_I2C6_STOP <i> I2C6 is frozen while CPU is in debug mode |
| 37 | +// <i> Reserved on STM32U535/545/575/585 devices |
| 38 | +// <o.6> DBG_I2C5_STOP <i> I2C5 is frozen while CPU is in debug mode |
| 39 | +// <i> Reserved on STM32U535/545/575/585 devices |
| 40 | +// <o.5> DBG_LPTIM2_STOP <i> LPTIM2 is frozen while CPU is in debug mode |
| 41 | +// <o.1> DBG_I2C4_STOP <i> I2C4 is frozen while CPU is in debug mode |
| 42 | +// </h> |
| 43 | +DbgMCU_APB1H_Fz = 0x00000000; |
| 44 | + |
| 45 | +// <h> Debug MCU APB2 freeze register (DBGMCU_APB2FZR) |
| 46 | +// <i> Reserved bits must be kept at reset value |
| 47 | +// <o.18> DBG_TIM17_STOP <i> TIM17 is frozen while CPU is in debug mode |
| 48 | +// <o.17> DBG_TIM16_STOP <i> TIM16 is frozen while CPU is in debug mode |
| 49 | +// <o.16> DBG_TIM15_STOP <i> TIM15 is frozen while CPU is in debug mode |
| 50 | +// <o.13> DBG_TIM8_STOP <i> TIM8 is frozen while CPU is in debug mode |
| 51 | +// <o.11> DBG_TIM1_STOP <i> TIM1 is frozen while CPU is in debug mode |
| 52 | +// </h> |
| 53 | +DbgMCU_APB2_Fz = 0x00000000; |
| 54 | + |
| 55 | +// <h> Debug MCU APB3 freeze register (DBGMCU_APB3FZR) |
| 56 | +// <i> Reserved bits must be kept at reset value |
| 57 | +// <o.30> DBG_RTC_STOP <i> RTC is frozen while CPU is in debug mode. |
| 58 | +// <o.19> DBG_LPTIM4_STOP <i> LPTIM4 is frozen while CPU is in debug mode |
| 59 | +// <o.18> DBG_LPTIM3_STOP <i> LPTIM3 is frozen while CPU is in debug mode |
| 60 | +// <o.17> DBG_LPTIM1_STOP <i> LPTIM1 is frozen while CPU is in debug mode |
| 61 | +// <o.10> DBG_I2C3_STOP <i> I2C3 is frozen while CPU is in debug mode |
| 62 | +// </h> |
| 63 | +DbgMCU_APB3_Fz = 0x00000000; |
| 64 | + |
| 65 | +// <h> Debug MCU AHB1 freeze register (DBGMCU_AHB1FZR) |
| 66 | +// <i> Reserved bits must be kept at reset value |
| 67 | +// <o.15> DBG_GPDMA15_STOP <i> GPDMA channel 15 is frozen while CPU is in debug mode |
| 68 | +// <o.14> DBG_GPDMA14_STOP <i> GPDMA channel 14 is frozen while CPU is in debug mode |
| 69 | +// <o.13> DBG_GPDMA13_STOP <i> GPDMA channel 13 is frozen while CPU is in debug mode |
| 70 | +// <o.12> DBG_GPDMA12_STOP <i> GPDMA channel 12 is frozen while CPU is in debug mode |
| 71 | +// <o.11> DBG_GPDMA11_STOP <i> GPDMA channel 11 is frozen while CPU is in debug mode |
| 72 | +// <o.10> DBG_GPDMA10_STOP <i> GPDMA channel 10 is frozen while CPU is in debug mode |
| 73 | +// <o.9> DBG_GPDMA9_STOP <i> GPDMA channel 9 is frozen while CPU is in debug mode |
| 74 | +// <o.8> DBG_GPDMA8_STOP <i> GPDMA channel 8 is frozen while CPU is in debug mode |
| 75 | +// <o.7> DBG_GPDMA7_STOP <i> GPDMA channel 7 is frozen while CPU is in debug mode |
| 76 | +// <o.6> DBG_GPDMA6_STOP <i> GPDMA channel 6 is frozen while CPU is in debug mode |
| 77 | +// <o.5> DBG_GPDMA5_STOP <i> GPDMA channel 5 is frozen while CPU is in debug mode |
| 78 | +// <o.4> DBG_GPDMA4_STOP <i> GPDMA channel 4 is frozen while CPU is in debug mode |
| 79 | +// <o.3> DBG_GPDMA3_STOP <i> GPDMA channel 3 is frozen while CPU is in debug mode |
| 80 | +// <o.2> DBG_GPDMA2_STOP <i> GPDMA channel 2 is frozen while CPU is in debug mode |
| 81 | +// <o.1> DBG_GPDMA1_STOP <i> GPDMA channel 1 is frozen while CPU is in debug mode |
| 82 | +// <o.0> DBG_GPDMA0_STOP <i> GPDMA channel 0 is frozen while CPU is in debug mode |
| 83 | +// </h> |
| 84 | +DbgMCU_AHB1_Fz = 0x00000000; |
| 85 | + |
| 86 | +// <h> Debug MCU AHB3 freeze register (DBGMCU_AHB3FZR) |
| 87 | +// <i> Reserved bits must be kept at reset value |
| 88 | +// <o.3> DBG_LPDMA3_STOP <i> LPDMA channel 3 is frozen while CPU is in debug mode |
| 89 | +// <o.2> DBG_LPDMA2_STOP <i> LPDMA channel 2 is frozen while CPU is in debug mode |
| 90 | +// <o.1> DBG_LPDMA1_STOP <i> LPDMA channel 1 is frozen while CPU is in debug mode |
| 91 | +// <o.0> DBG_LPDMA0_STOP <i> LPDMA channel 0 is frozen while CPU is in debug mode |
| 92 | +// </h> |
| 93 | +DbgMCU_AHB3_Fz = 0x00000000; |
| 94 | + |
| 95 | +// <h> TPIU Pin Routing |
| 96 | +// <o0> TRACECLK |
| 97 | +// <i> ETM Trace Clock |
| 98 | +// <0x0002000A=> Pin PE2 |
| 99 | +// <0x00000008=> Pin PA8 |
| 100 | +// <i> TRACECLK: Pin PE2 |
| 101 | +// <o1> TRACED0 |
| 102 | +// <i> ETM Trace Data 0 |
| 103 | +// <0x00040003=> Pin PE3 |
| 104 | +// <0x00020009=> Pin PC9 |
| 105 | +// <0x00020001=> Pin PC1 |
| 106 | +// <o2> TRACED1 |
| 107 | +// <i> ETM Trace Data 1 |
| 108 | +// <0x0002000A=> Pin PC10 |
| 109 | +// <0x00040004=> Pin PE4 |
| 110 | +// <o3> TRACED2 |
| 111 | +// <i> ETM Trace Data 2 |
| 112 | +// <0x00040005=> Pin PE5 |
| 113 | +// <0x00030002=> Pin PD2 |
| 114 | +// <o4> TRACED3 |
| 115 | +// <i> ETM Trace Data 3 |
| 116 | +// <0x00040006=> Pin PE6 |
| 117 | +// <0x0002000C=> Pin PC12 |
| 118 | +// </h> |
| 119 | +TraceClk_Pin = 0x00040002; |
| 120 | +TraceD0_Pin = 0x00020009; |
| 121 | +TraceD1_Pin = 0x0002000A; |
| 122 | +TraceD2_Pin = 0x00040005; |
| 123 | +TraceD3_Pin = 0x0002000C; |
| 124 | + |
| 125 | +// <h> Flash Download Options |
| 126 | +// <o.0> Option Byte Loading <i> Launch the Option Byte Loading after a Flash Download by setting the OBL_LAUNCH bit (causes a reset) |
| 127 | +// </h> |
| 128 | +DoOptionByteLoading = 0x00000000; |
| 129 | + |
| 130 | +// <<< end of configuration section >>> |
0 commit comments