Save register information when watchdog reset.

Hi,
I use NRF52833 and SW: NCS version 1.4.1 and its zephyr version is 2.4.0.


I would like to know if there is method to record program counter, stack pointer information when watchdog reset occurs?


I know there is thread mentioned an example on dumping the stack. However, it seems not match my SW version.
    devzone.nordicsemi.com/.../saving-the-location-of-watchdog-timeout

Thanks

Parents
  • Hi Jay,

    The watchdog example in that thread is run using nRF5 SDK while you are using nRF Connect SDK(NCS). In NCS, you can find a Watchdog example in  NCS\v1.7.0\zephyr\samples\drivers\watchdog. However, the example doesn't demonstrate how to record the stack pointer information when watchdog reset occurs. I will look into it and get back to you on Monday.

    Regards,

    Swathy

Reply
  • Hi Jay,

    The watchdog example in that thread is run using nRF5 SDK while you are using nRF Connect SDK(NCS). In NCS, you can find a Watchdog example in  NCS\v1.7.0\zephyr\samples\drivers\watchdog. However, the example doesn't demonstrate how to record the stack pointer information when watchdog reset occurs. I will look into it and get back to you on Monday.

    Regards,

    Swathy

Children
Related