This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sleep mode of nRF52840 in NCS

I'm working on NCS 1.6.1 for both nRF52840 and nRF9160.

I'm trying to put my devices into sleep mode so i reviewed some related tickets and found following ways.

NRF_REGULATORS->SYSTEMOFF=1     //this seems only to be supported in nrf9160

and

pm_power_state_force(struck pm_state_info info)

i wonder what is the better way to go with? and what is the difference between these two? 

and are there any samples showing how to  manipulate sleep mode? 

Parents
  • Hi

    Please check out the nRF5x system OFF sample project in Zephyr which uses pm_power_state_force correctly to force an nRF5x device to system OFF. It can be found in ...\<NCS_FOLDER>\v1.7.0\zephyr\samples\boards\nrf\system_off\src\main.c

    Best regards,

    Simon

Reply
  • Hi

    Please check out the nRF5x system OFF sample project in Zephyr which uses pm_power_state_force correctly to force an nRF5x device to system OFF. It can be found in ...\<NCS_FOLDER>\v1.7.0\zephyr\samples\boards\nrf\system_off\src\main.c

    Best regards,

    Simon

Children
Related