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
  • Yes, setting some GPIO as input will make that PIN waking up the MCU from SYSTEM OFF. Here is example from SDK:

    // This pin is used for waking up from System OFF and is active low, enabling sense capabilities.
    nrf_gpio_cfg_sense_input(PIN_GPIO_WAKEUP, BUTTON_PULL, NRF_GPIO_PIN_SENSE_LOW);
    
    // Workaround for PAN_028 rev1.1 anomaly 22 - System: Issues with disable System OFF mechanism
    nrf_delay_ms(1);
    
Children
No Data
Related