This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Find where CPU stuck

Hi, 

I'm working with  NRF52832 which operates on battery in low-power mode.

The unit samples and transmit data (via modem) 2 times a day.

After few weeks / months of operation the unit get stuck !

I connected JLINK RTT VIEWER through DEBUG PORT on the eval kit to my unit.

I saw that the CPU is still "alive" and i get TIMER event every 5 min (which i declared to happen)

Other software elements seems not to be working...  :-(

My question is:

Is there a way to see where in the software the CPU is (Like reading Program Counter) or "debug" (but without program & reset)  ?!  or any other way ?!

(By mistake i put the "clear watchdog" command inside the "5 min" event.... I'll remove it from there but i want to know where the software got stuck....)

Thanks is advance !

Yuval

Parents Reply Children
No Data
Related