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 Reply
  • You cannot call any sd_xxx function when Soft Device isn't enabled (I believe it applies to all functions but maybe there are few exceptions). Also parameter of the function looks bad, why would you supply register address as pointer to return value? See how nrf_power_resetreas_get function looks in components\drivers_nrf\hal\nrf_power.h, that's how you access (read) registers in C;)

Children
No Data
Related