This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
I have a strange behaviour with low power modes that I don't understand. My system has two enabled interrupts, that are called at 45kHz. At the end of the first ISR I send the CPU to IDLE (clocks for most peripheral modules are turned off, except for the two that trigger the interrupts). By toggling pins I can observe that it works as desired.
Now, when I try to put the flash into standby (FlashRegs.FPWR.bit.PWR = 0x1) in addition to the other powered down modules, strange things happen. After a certain time the CPU wakes up from idle without entering any of the enabled interrupts. As far as I saw by controlling the PIE registers no other interrupt is pending at this time. The project is exactly the same as before, when idle mode worked as expected. I really don't understand what wakes up the CPU at this point. Any ideas around??
Attached a sketch with the situation described above.
BR Andreas