5 years, 8 months ago.

NRF52 doesn't go to sleep

I am working on a project which uses nrf52832. Currently I am working with the nrf52_dk development board.

I want to include bonding functionality in my project and thus I am using the Security Manager Class. I am using this example https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-SM/file/94021906c1e0/source/main.cpp/

But the problem is that the device doesn't go to sleep with this. It is advertising and I can pair and connect to it, but the current consumption is 2mA.

Is there anything i should change in this to get sleep mode working?

Thanks

I have narrowed down the problem to the fopen and fclose function calls. If I use these, the controller doesn't go into low power.

The SecurityManager's init function uses these fopen and fclose functions. Maybe that's why the controller is not going in low power.

Anyone has any ideas regarding this?

posted by Allan Tom Mathew 21 Aug 2018

1 Answer

4 years, 5 months ago.

HI Allan,

Did you find a solution to this?

Cheers

Ben