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

Can't shutdown nRF 52832 even with Power Management Library: SysOff handler 0x00020E79 => blocking

Hello,

I'm trying to shutdown my whole system (nRF 52832, SD132, SDK 12.3) after advertisement fast and slow are finished, following the structure of the peripheral BLE_APP_UART example: when the event BLE_ADV_EVT_IDLE is produced, the sleep_mode_enter() function is called and then sd_power_system_off().

This wasn't working because sd_power_system_off() returns NRF_ERROR_NOT_SUPPORTED. I read in this post that it's important that any DMA transactions are completed before entering system OFF mode. And The Power Management Library can be used to poll DMA status and delay shutdown until there are no pending transactions.

First I tried to de-initialize my drivers (spi, adc, pwm) but I was still getting the same error.

I've tried the Power Management Library: I initialize the module with nrf_pwr_mgmt_init(APP_TIMER_TICKS(1000, APP_TIMER_PRESCALER)) and then call nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_CONTINUE). What the module says is the following:

NRF_PWR_MGMT:INFO:Shutdown request 3
NRF_PWR_MGMT:INFO:Shutdown started. Type 0
NRF_PWR_MGMT:INFO:SysOff handler 0x00020E79 => blocking

It seems that there is something which has yet to be stopped before shutting down, am I right? But how can I find what is the problem with only address 0x00020E79?

Additionally, Power Management Library is supposed to have the feature NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY, which I activated in the sdk_config.h, but I don't see any other attempt to shutdown each 1s. How does this work?

Thanks in advance.

Related