Processor K32W041, but most likely applicable to all ARM Cortex-M4
How can I stop the timer peripherals when stopped at a breakpoint?
When debugging my code, the processor stops at a breakpoint but the Real Time Clock (RTC) continues. This creates problems since the RTC is used for timeouts and interrupt driven timers. Is there a mechanism where I can specify which timers should stop on entering the debug state? Something like the 'DBGMCU Peripheral Freeze registers' in the STM32MP157 or STM32WBA5xxx?
Alternatively, is there a method to test whether the debugger is in a stopped state? So, when entering the timer interrupt routine, I could test for this debugger state and then ignore the interrupt.
Hello,
Thank you for contacting NXP support.
We do not have specifically a debugger option for the RTC debugging as you mention what we can do in this case is or either use an RTC interrupt and do an RTC stop and re-start the RTC once the interruption is gone.