Can we stop the timers when debugging?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can we stop the timers when debugging?

475 Views
ckielstra
Contributor II

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.

0 Kudos
Reply
1 Reply

450 Views
nxf77486
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply