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

System off mode returning instantly.

Hi,

I know this question must get asked enough, but i am at my wits end and have not managed to find a solution for this yet.

calling sd_power_system_off returns NRF_INVALID_STATE and causes a reset. I have read that this can be due to the configured wakeup pin is already in the wakeup state. This is not the case, in fact i would rather it never wakeup at all, as i have another MCU which is controlling the nRFs power modes that can just toggle the load switch to wake it back up.

It might sound silly putting it in deep sleep when i can just turn off the load switch, however its a high side switch, and some of the pins on the nRF are pulled to an always present 3V3 line and i get horrible GPIO leakage, not matter what i do before shutdown. Deep sleep solves this and the current consumption when it works is fine.

I have two build targets in one project. One does not use the softdevice and can deep sleep just fine, the BLE enabled target however can't ever sleep. i have tried uninitialising every interrupt and disabling them, stopping the advertising, and setting up a wakeup pin but to no avail.

Is there some way i can clear whatever it is that blocks system off mode?

Device is an nRF51422 QFAC S110.

Thanks in advance, Bill.

Parents Reply Children
No Data
Related