// File: STM32G4xx.dbgconf // Version: 1.0.1 // Note: refer to STM32G4xx Reference manual (RM0440) // refer to STM32G4xx datasheets // <<< Use Configuration Wizard in Context Menu >>> // Debug MCU configuration register (DBGMCU_CR) // DBG_STANDBY Debug Standby mode // DBG_STOP Debug Stop mode // DBG_SLEEP Debug Sleep mode // DbgMCU_CR = 0x00000007; // Debug MCU APB1 freeze register1 (DBGMCU_APB1FZR1) // Reserved bits must be kept at reset value // DBG_LPTIM1_STOP LPTIM1 counter stopped when core is halted // DBG_I2C3_STOP I2C3 SMBUS timeout counter stopped when core is halted // DBG_I2C2_STOP I2C2 SMBUS timeout counter stopped when core is halted // DBG_I2C1_STOP I2C1 SMBUS timeout counter stopped when core is halted // DBG_IWDG_STOP Independent watchdog counter stopped when core is halted // DBG_WWDG_STOP Window watchdog counter stopped when core is halted // DBG_RTC_STOP RTC counter stopped when core is halted // DBG_TIM7_STOP TIM7 counter stopped when core is halted // DBG_TIM6_STOP TIM6 counter stopped when core is halted // DBG_TIM5_STOP TIM5 counter stopped when core is halted // DBG_TIM4_STOP TIM4 counter stopped when core is halted // DBG_TIM3_STOP TIM3 counter stopped when core is halted // DBG_TIM2_STOP TIM2 counter stopped when core is halted // DbgMCU_APB1_Fz1 = 0x00000000; // Debug MCU APB1 freeze register 2 (DBGMCU_APB1FZR2) // Reserved bits must be kept at reset value // DBG_I2C4_STOP I2C4 SMBUS timeout counter stopped when core is halted // DbgMCU_APB1_Fz2 = 0x00000000; // Debug MCU APB2 freeze register (DBGMCU_APB2FZR) // Reserved bits must be kept at reset value // DBG_HRTIM_STOP HRTIM counter stopped when core is halted // DBG_TIM20_STOP TIM20 counter stopped when core is halted // DBG_TIM17_STOP TIM17 counter stopped when core is halted // DBG_TIM16_STOP TIM16 counter stopped when core is halted // DBG_TIM15_STOP TIM15 counter stopped when core is halted // DBG_TIM8_STOP TIM8 counter stopped when core is halted // DBG_TIM1_STOP TIM1 counter stopped when core is halted // DbgMCU_APB2_Fz = 0x00000000; // TPIU Pin Routing // TRACECLK: Pin PE2 // TRACED[0]: Pin PE3 // TRACED[1]: Pin PE4 // TRACED[2]: Pin PE5 // TRACED[3]: Pin PE6 // // 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 >>>