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)?