5 years, 11 months ago.

How can nRF51822-mKit make nRF51822 enter System OFF mode?

Hi

I'm trying to make nRF51822 enter System OFF mode, but I have not been able to find the way to do it yet. Could you show me the way with example code?

Best regards

Question relating to:

Nordic stack and drivers for the mbed BLE API

1 Answer

5 years, 11 months ago.

sd_power_system_off() [declared in nrf_soc.h].

Accepted Answer

Thank you for your response, Rohit. Please let me ask you one more question. Is it impossible to make nRF51822 enter System OFF mode by using nRF51822 library? https://developer.mbed.org/teams/Nordic-Semiconductor/code/nRF51822/docs/tip/ Do I have to include "nrf_soc.h"?

I'm developing nRF51822 with LPC11U68 as mbed interface.

posted by yu ishikawa 04 Sep 2015

I believe the best you could do is to include "nRF5xGap.h" which will include "nrf_soc.h" internally.

posted by Rohit Grover 04 Sep 2015

I see. Thank you for quick reply!

posted by yu ishikawa 04 Sep 2015

an even easier way is:

NRF_POWER->SYSTEMOFF=1;

posted by Davide Bortolami 09 Sep 2015