I’m working on stm32l4 MCU with freertos. My application task stopped working after waking up from stop2 mode. If I do not enter into stop2 mode its works fine. But if its go to stop2 mode and wakeup it get stuck after a while. What I found is if I do not set the deepsleep bit in stop2 mode it works fine as soon as I set that bit, after a while couple of task stopped and those task have long delay as well about 10sec.
If anyone have gone through this situation please help me or do you have any idea why deepsleep bit making problem.