Can we stop the timers when debugging?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Can we stop the timers when debugging?

1,302 次查看
ckielstra
Contributor III

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 项奖励
回复
1 回复

1,277 次查看
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 项奖励
回复