// File: STM32U535_545_575_585_59x_5Ax.dbgconf
// Version: 1.0.0
// Note: refer to STM32U5 reference manual (RM0456)
// refer to STM32U535xx datasheet (DS14217)
// STM32U545xx datasheet (DS14216)
// STM32U575xx datasheet (DS13737)
// STM32U585xx datasheet (DS13086)
// STM32U59xxx datasheet (DS13633)
// STM32U5Axxx datasheet (DS13543)
// <<< Use Configuration Wizard in Context Menu >>>
// Debug MCU configuration register (DBGMCU_CR)
// DBG_STANDBY Debug standby mode
// DBG_STOP Debug stop mode
//
DbgMCU_CR = 0x00000006;
// Debug MCU APB1L freeze register (DBGMCU_APB1LFZR)
// Reserved bits must be kept at reset value
// DBG_I2C2_STOP I2C2 SMBUS timeout is frozen while CPU is in debug mode
// DBG_I2C1_STOP I2C1 SMBUS timeout is frozen while CPU is in debug mode
// DBG_IWDG_STOP Debug independent watchdog is frozen while CPU is in debug mode
// DBG_WWDG_STOP Debug window watchdog is frozen while CPU is in debug mode
// DBG_TIM7_STOP TIM7 is frozen while CPU is in debug mode
// DBG_TIM6_STOP TIM6 is frozen while CPU is in debug mode
// DBG_TIM5_STOP TIM5 is frozen while CPU is in debug mode
// DBG_TIM4_STOP TIM4 is frozen while CPU is in debug mode
// DBG_TIM3_STOP TIM3 is frozen while CPU is in debug mode
// DBG_TIM2_STOP TIM2 is frozen while CPU is in debug mode
//
DbgMCU_APB1L_Fz = 0x00000000;
// Debug MCU APB1H freeze register (DBGMCU_APB1HFZR)
// Reserved bits must be kept at reset value
// DBG_I2C6_STOP I2C6 is frozen while CPU is in debug mode
// Reserved on STM32U535/545/575/585 devices
// DBG_I2C5_STOP I2C5 is frozen while CPU is in debug mode
// Reserved on STM32U535/545/575/585 devices
// DBG_LPTIM2_STOP LPTIM2 is frozen while CPU is in debug mode
// DBG_I2C4_STOP I2C4 is frozen while CPU is in debug mode
//
DbgMCU_APB1H_Fz = 0x00000000;
// Debug MCU APB2 freeze register (DBGMCU_APB2FZR)
// Reserved bits must be kept at reset value
// DBG_TIM17_STOP TIM17 is frozen while CPU is in debug mode
// DBG_TIM16_STOP TIM16 is frozen while CPU is in debug mode
// DBG_TIM15_STOP TIM15 is frozen while CPU is in debug mode
// DBG_TIM8_STOP TIM8 is frozen while CPU is in debug mode
// DBG_TIM1_STOP TIM1 is frozen while CPU is in debug mode
//
DbgMCU_APB2_Fz = 0x00000000;
// Debug MCU APB3 freeze register (DBGMCU_APB3FZR)
// Reserved bits must be kept at reset value
// DBG_RTC_STOP RTC is frozen while CPU is in debug mode.
// DBG_LPTIM4_STOP LPTIM4 is frozen while CPU is in debug mode
// DBG_LPTIM3_STOP LPTIM3 is frozen while CPU is in debug mode
// DBG_LPTIM1_STOP LPTIM1 is frozen while CPU is in debug mode
// DBG_I2C3_STOP I2C3 is frozen while CPU is in debug mode
//
DbgMCU_APB3_Fz = 0x00000000;
// Debug MCU AHB1 freeze register (DBGMCU_AHB1FZR)
// Reserved bits must be kept at reset value
// DBG_GPDMA15_STOP GPDMA channel 15 is frozen while CPU is in debug mode
// DBG_GPDMA14_STOP GPDMA channel 14 is frozen while CPU is in debug mode
// DBG_GPDMA13_STOP GPDMA channel 13 is frozen while CPU is in debug mode
// DBG_GPDMA12_STOP GPDMA channel 12 is frozen while CPU is in debug mode
// DBG_GPDMA11_STOP GPDMA channel 11 is frozen while CPU is in debug mode
// DBG_GPDMA10_STOP GPDMA channel 10 is frozen while CPU is in debug mode
// DBG_GPDMA9_STOP GPDMA channel 9 is frozen while CPU is in debug mode
// DBG_GPDMA8_STOP GPDMA channel 8 is frozen while CPU is in debug mode
// DBG_GPDMA7_STOP GPDMA channel 7 is frozen while CPU is in debug mode
// DBG_GPDMA6_STOP GPDMA channel 6 is frozen while CPU is in debug mode
// DBG_GPDMA5_STOP GPDMA channel 5 is frozen while CPU is in debug mode
// DBG_GPDMA4_STOP GPDMA channel 4 is frozen while CPU is in debug mode
// DBG_GPDMA3_STOP GPDMA channel 3 is frozen while CPU is in debug mode
// DBG_GPDMA2_STOP GPDMA channel 2 is frozen while CPU is in debug mode
// DBG_GPDMA1_STOP GPDMA channel 1 is frozen while CPU is in debug mode
// DBG_GPDMA0_STOP GPDMA channel 0 is frozen while CPU is in debug mode
//
DbgMCU_AHB1_Fz = 0x00000000;
// Debug MCU AHB3 freeze register (DBGMCU_AHB3FZR)
// Reserved bits must be kept at reset value
// DBG_LPDMA3_STOP LPDMA channel 3 is frozen while CPU is in debug mode
// DBG_LPDMA2_STOP LPDMA channel 2 is frozen while CPU is in debug mode
// DBG_LPDMA1_STOP LPDMA channel 1 is frozen while CPU is in debug mode
// DBG_LPDMA0_STOP LPDMA channel 0 is frozen while CPU is in debug mode
//
DbgMCU_AHB3_Fz = 0x00000000;
// TPIU Pin Routing
// TRACECLK
// ETM Trace Clock
// <0x0002000A=> Pin PE2
// <0x00000008=> Pin PA8
// TRACECLK: Pin PE2
// TRACED0
// ETM Trace Data 0
// <0x00040003=> Pin PE3
// <0x00020009=> Pin PC9
// <0x00020001=> Pin PC1
// TRACED1
// ETM Trace Data 1
// <0x0002000A=> Pin PC10
// <0x00040004=> Pin PE4
// TRACED2
// ETM Trace Data 2
// <0x00040005=> Pin PE5
// <0x00030002=> Pin PD2
// TRACED3
// ETM Trace Data 3
// <0x00040006=> Pin PE6
// <0x0002000C=> Pin PC12
//
TraceClk_Pin = 0x00040002;
TraceD0_Pin = 0x00020009;
TraceD1_Pin = 0x0002000A;
TraceD2_Pin = 0x00040005;
TraceD3_Pin = 0x0002000C;
// Flash Download Options
// Option Byte Loading Launch the Option Byte Loading after a Flash Download by setting the OBL_LAUNCH bit (causes a reset)
//
DoOptionByteLoading = 0x00000000;
// <<< end of configuration section >>>