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 Swathy
    Thanks for your example: watchdog.zip.

    I tested it on my code. During test, I always get printk message "CRC mismatch".
    Then I print computed_crc, esf_crc and esf as below for your checking.

    computed_crc: 420107693 esf_crc: 0
    Exception stack frame:
    r0/a1: 0x00000000 r1/a2: 0x00000000 r2/a3: 0x00000000
    r3/a4: 0x00000000 r12/ip: 0x00000000 r14/lr: 0x00000000
    xpsr: 0x00000000 pc: 0x00000000

    Thanks,

    jay2242

Reply
  • Hi Swathy
    Thanks for your example: watchdog.zip.

    I tested it on my code. During test, I always get printk message "CRC mismatch".
    Then I print computed_crc, esf_crc and esf as below for your checking.

    computed_crc: 420107693 esf_crc: 0
    Exception stack frame:
    r0/a1: 0x00000000 r1/a2: 0x00000000 r2/a3: 0x00000000
    r3/a4: 0x00000000 r12/ip: 0x00000000 r14/lr: 0x00000000
    xpsr: 0x00000000 pc: 0x00000000

    Thanks,

    jay2242

Children
Related