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

How can I read RESETREAS register using a softdevice?

Hello,

I would like to know how I can identify the reason for a reset in my device, I have read about the register NRF_POWER->RESETREAS but I don't know how to check it since I am using a softdevice.

I have read as well this post but I couldn't capture the reset reason with it, thus I am turning to the NRF_POWER->RESETREAS register.

Any hints?

Thanks in advance

Parents
  • Simply read that register right after your FW boots way before you enable SD. No conflict at that time, you can freely read the value (I actually believe you can read it like that even when SD is active but it doesn't matter).

  • @endnode, I see that I get an NRF_POWER_RESETREAS_OFF, checking the datasheet of the nrf52832 I see that this is due to Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO, does this mean that I get an interruption on a GPIO port?

Reply
  • @endnode, I see that I get an NRF_POWER_RESETREAS_OFF, checking the datasheet of the nrf52832 I see that this is due to Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO, does this mean that I get an interruption on a GPIO port?

Children
No Data