Using nrf_regulators_system_off in newer Connect SDKs

I am having difficulty getting the nrf_regulators_system_off function to work correctly on newer versions of the Connect SDK.

In earlier versions v1.3 and such, the call would power down the 9160 to a very low current draw. Now, when I use it, i see a power draw compatible to all threads idle.

I suspect this has something to do with the rearchitecting of the SPM configuration file and that I'm not successfully granting non-secure rights to the power regulators but I'm not sure. All the posts on this topic (that I've found) are relatively old and reference older SDK versions.

It would be quite helpful to have a simple modern, example that compiled for the latest SDKs (I'm on v1.6.1 but v1.7 is fine) that powered off the 9160 and restarted it with a button press.

Thanks.

Doug

Parents Reply
  • Hi Doug,

     

    I'm glad to hear that you found a solution to the issue.

    dboling said:
    Once the call to nrf_modem_lib_init was made, I was able to get the power levels expected. The interesting thing is that the init call is required even if the device goes immediately into power down after a reset. My code detects a power down request, set a flag in the flash, resets the 9160 and powers down upon return. The change in behavior in the v1.3.0 modem firmware caught me unaware.

    My apologies for the inconvenience this caused! the modem is awaiting commands from the application, ie. a initialization, which accounts for this added consumption.

     

    Kind regards,

    Håkon

Children
No Data
Related