5 years, 4 months ago.

DeepSleepLock overflow

Can anybody please guide me where to look at the code, what is generating this mbed error? i don't use sleep() or deepsleep() in my code


++ MbedOS Error Info ++
Error Status: 0x80040123 Code: 291 Module: 4
Error Message: DeepSleepLock overflow (> USHRT_MAX)
Location: 0x800781D
Error Value: 0xFFFF
Current Thread: Id: 0x20004394 Entry: 0x800BB71 StackSize: 0x1000 StackMem: 0x20005220 SP: 0x200060E8

1 Answer

5 years, 3 months ago.

Hi Pavel,

What program are you using? Can you take a look at this github issue and see if it is relevant to what you are looking for?:


Let us know if you have any more questions!

-Karen, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Hi Karen, my project is a big one so i can't post the code. Uses multiple Timers, a few LowPowerTimer, 2x UARTSerial, 2x CAN, 2x I2C, SPI , when compiled FW size : 170kb so as you can see i don't know where to start looking.

I had a quick look into that issue and it was fixed. So how do I know if destructors are ok in OS? It would be nice to know what "things" can cause this problem

posted by Pavel S 06 Aug 2018

I have enabled debugging with OpenLog and interesting things it that processor uptime (measured with RTC) is only as follow (in seconds): 32890 32891 32889 32891 32889

and always after that period i get previous error

posted by Pavel S 06 Aug 2018