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
  • Is there a way to see where in the software the CPU is (Like reading Program Counter) or "debug" (but without program & reset) 

    You haven't said what IDE you're using.

    With Segger Embedded Studio (SES), you can 'attach to target' - which doesn't do a program or reset...

  • Using IAR 8

Reply Children
  • So study the IAR documentation and/or contact IAR support to find if they have a similar feature, and how to use it.

    At the price you pay for IAR, I would certainly hope they do ...