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

Enter system off, use triggered from DETECT signal from GPIO to wake up, but register is not correct.

I used SDK is nRF5_SDK_14.1.0_1dda907

Chip is nrf52832 evb.

Soft device is S332.

I call function sd_power_system_off() enter system off.

Use triggered from DETECT signal from GPIO to wake up.

Then reset, but of power->RESETREAS register always is POWER_RESETREAS_RESETPIN_Msk, is not POWER_RESETREAS_OFF_Msk.

What wrong with it.

Thanks.

  • Hi, 

    Are you clearing the RESETREAS register after you read it out on startup? The reason I ask is that workaround for errata 136 implemented in system_nrf52.c will clear the other bits if the PINRESET bit is set. In other words, you can expect to see this behavior if you don't clear the register, and you have done a pinreset since the last power-on reset. 

Related