I am facing a problem with some LPC17 (LPC1768, LPC1759 and LPC1754) regarding to wake up from deep sleep or power down modes.
In a test program I just want to detect a button click and go to “deep sleep” or “power down” mode.
When running without a call to
everything works fine. The MCU board, while running, consumes 10 to 12 mA and, when it goes to low power, about 7 mA (a LED stays alive). A button press generates a GPIO irq (shared with EINT3) and the MCU lives again, consuming the same 10 to 12 mA.
If I change the same test program to now use FreeRTOS, and making the very same endless function now a task, the MCU does not wake from low power anymore.
While running, the consumption is the same as before, 10 to 12 mA. The MCU successfully goes to low power, consuming the same 7 mA.
When I press the button, though, the MCU does not comes up to the working state, but flashes very quickly the to monitoring LEDs and goes to a zoombie state consuming about 24 mA.
Can anyone help me, please?
Should I post some code to clarify the things (it is not that big)?