
GD32L23x User Manual
197
12.3.
Debug hold function overview
12.3.1.
Debug support for power saving mode
When the STB_HOLD bit in DBG control register 0 (DBG_CTL0) is set, and entering the
standby mode, the clock of AHB bus and system clock are provided by CK_IRC16M, and the
debugger can debug in standby mode. When exiting the standby mode, a system reset
generated.
When the DSLP_HOLD bit in DBG control register 0 (DBG_CTL0) is set, and entering the
deep-sleep mode, the clock of AHB bus and system clock are provided by CK_IRC16M, and
the debugger can debug in deep-sleep mode.
When the SLP_HOLD bit in DBG control register 0 (DBG_CTL0) is set, and entering the sleep
mode, the clock of AHB bus for CPU is not closed, and the debugger can debug in sleep
mode.
12.3.2.
Debug support for TIMER, LPTIMER, I2C, RTC, WWDGT and FWDGT
When the core is halted and the corresponding bit in DBG control register 0 or DBG control
register 1 (DBG_CTL0 or DBG_CTL1) is set, the following events occur.
For TIMER and LPTIMER, the timer counters are stopped and held for debugging.
For I2C, SMBUS timeout is held for debugging.
For RTC, the counter is stopped for debugging.
For WWDGT or FWDGT, the counter clock is stopped for debugging.