This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sd_power_system_off() returns Assertion failed

Hi, 

I am getting assertion failed error when putting the device in System off. Could you please help me understand why?

Below in the code where the error happens:

I am using SDK 17.0.2 and Soft device S140. 

Many thanks 

Parents Reply
  • Yes, as Turbo says, the program should only ever return from sd_power_system_off() if the chip is in debug interface mode. Because then the chip does not enter the normal System OFF mode, but rather "Emulated System OFF mode". And to add to the confusion, the ASSERT is checking the wrong error code and/or is misplaced. The  program is meant to enter the sleep loop below during debugging, which the assert prevents. This has been reported as a bug internally.

    I would comment the ASSERT line for now. I don't see any reason for keeping it. 

Children
Related