Unable to add system off sleep mode in zephyr

Hi,

I am new to zephyr. 

I have tested Ibeacon and System off example individually on nrf52840 PDK board.

I am trying to add system off (Deep Sleep) mode in the zephyr Ibeacon example. 

for that simply I have added the header files of system off example in the Ibeacon example and the below two lines

pm_state_force(0u, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});
k_sleep(K_SECONDS(SLEEP_S));

in main of Ibeacon example. 

such that after Ibeacon function execution the system off is executed and remains in it.

but I am not getting the expected results as I check the power consumption of the board using the PPK 1 board, it shows 400 - 600uA.

Please help me to resolve this issue or please share any link of sample example related to this. 

Parents Reply Children
No Data
Related