Hello, I am struggeling to put my LPC1227 to deep sleep in my project that uses RTX RTOS.
My project without deep-sleep works great. Also another sample project that uses deep sleep (but no RTX) works like a charm (lpc12xx.cmsis.driver.library).
When I tried to combine this two projects, I get unfunctional project. The code for deep sleep is JUST after tha main loop (before OS initializes). Thu uC goes to deep sleep (I can see with multimeter - 30uA), the uC also somehow wakes up (using GPIO_0_0 as an untrrupt - this I can also see on multimeter - 11mA), but the uC hangs now. Looks like some exception occured or the wake-up procedure is not OK.
I can post the code, it this could be helpfull fo someone.
Please help me ande save me another week of my life :)
Best regards, Rok
Then there must be something wrong with your wake-up code. Typically, RTX only uses one hardware timer. Check that it is restarted. Also, make sure other peripherals that you need once woken up are programmed to be configured.
View all questions in Keil forum