// <<< Use Configuration Wizard in Context Menu >>>
// Debug MCU Configuration
// DBG_SLEEP
// Debug Sleep Mode
// 0: (FCLK=On, HCLK=Off) FCLK is clocked by the system clock as previously configured by the software while HCLK is disabled
// 1: (FCLK=On, HCLK=On) HCLK is fed by the same clock that is provided to FCLK
// DBG_STOP
// Debug Stop Mode
// 0: (FCLK=Off, HCLK=Off) Clock controller disables all clocks
// 1: (FCLK=On, HCLK=On) FCLK and HCLK are provided by the internal RC oscillator which remains active
// DBG_STANDBY
// Debug Standby Mode
// 0: (FCLK=Off, HCLK=Off) The whole digital part is unpowered.
// 1: (FCLK=On, HCLK=On) Digital part is powered and FCLK and HCLK are provided by the internal RC oscillator which remains active
//
DbgMCU_CR = 0x00000007;
// Debug MCU APB1 Configuration
// DBG_TIM2_STOP
// TIM2 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM3_STOP
// TIM3 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM4_STOP
// TIM4 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM5_STOP
// TIM5 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM6_STOP
// TIM6 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM7_STOP
// TIM7 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM12_STOP
// TIM12 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM13_STOP
// TIM13 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM14_STOP
// TIM14 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_LPTIM1_STOP
// LPTMI1 counter stopped when core is halted
// 0: The clock of LPTIM1 counter is fed even if the core is halted
// 1: The clock of LPTIM1 counter is stopped when the core is halted
// DBG_RTC_STOP
// RTC stopped when Core is halted
// 0: The RTC counter clock continues even if the core is halted
// 1: The RTC counter clock is stopped when the core is halted
// DBG_WWDG_STOP
// Debug Window Watchdog stopped when Core is halted
// 0: The window watchdog counter clock continues even if the core is halted
// 1: The window watchdog counter clock is stopped when the core is halted
// DBG_IWDG_STOP
// Debug independent watchdog stopped when core is halted
// 0: The independent watchdog counter clock continues even if the core is halted
// 1: The independent watchdog counter clock is stopped when the core is halted
// DBG_I2C1_SMBUS_TIMEOUT
// I2C1 SMBUS timeout mode stopped when Core is halted
// 0: Same behavior as in normal mode
// 1: The SMBUS timeout is frozen
// DBG_I2C2_SMBUS_TIMEOUT
// I2C2 SMBUS timeout mode stopped when Core is halted
// 0: Same behavior as in normal mode
// 1: The SMBUS timeout is frozen
// DBG_I2C3_SMBUS_TIMEOUT
// I2C3 SMBUS timeout mode stopped when Core is halted
// 0: Same behavior as in normal mode
// 1: The SMBUS timeout is frozen
// DBG_I2C4_SMBUS_TIMEOUT
// I2C4 SMBUS timeout mode stopped when Core is halted
// 0: Same behavior as in normal mode
// 1: The SMBUS timeout is frozen
// DBG_CAN1_STOP
// Debug CAN1 stopped when Core is halted
// 0: Same behavior as in normal mode
// 1: The CAN1 receive registers are frozen
// DBG_CAN2_STOP
// Debug CAN2 stopped when Core is halted
// 0: Same behavior as in normal mode
// 1: The CAN2 receive registers are frozen
//
DbgMCU_APB1_Fz = 0x00000000;
// Debug MCU APB2 Configuration
// DBG_TIM1_STOP
// TIM1 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM8_STOP
// TIM8 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM9_STOP
// TIM9 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM10_STOP
// TIM10 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
// DBG_TIM11_STOP
// TIM11 counter stopped when core is halted
// 0: The clock of the involved Timer Counter is fed even if the core is halted
// 1: The clock of the involved Timer counter is stopped when the core is halted
//
DbgMCU_APB2_Fz = 0x00000000;
// TPIU Pin Routing (TRACECLK fixed on Pin PE2)
// TRACED0
// ETM Trace Data 0
// <0=> Pin PC1
// <1=> Pin PE3
// <2=> Pin PG13
// TRACED1
// ETM Trace Data 1
// <0=> Pin PC8
// <1=> Pin PE4
// <2=> Pin PG14
// TRACED2
// ETM Trace Data 2
// <0=> Pin PD2
// <1=> Pin PE5
// TRACED3
// ETM Trace Data 3
// <0=> Pin PC12
// <1=> Pin PE6
ETMTrace_D0 = 1;
ETMTrace_D1 = 1;
ETMTrace_D2 = 1;
ETMTrace_D3 = 1;
//
// <<< end of configuration section >>>