Hi Igor,
Thank you very much for the documentation, it is very helpful.
I read it, but there is still something that I don't understand:
The document state how to enter a state and how to exit from state.
From my understanding , the exit steps are done in order to exit from the power mode to run mode.
1.
How can we know for sure that we entered a required power mode state ? I mean maybe we forgot to power of a pll or clock , how do we know that the mode was changed or not ?
2. In reference it says " IDLE mode is entered automatically from RUN mode when CPU
executes WFI instruction, " , but in this application note, it gives a long list of required steps in the entry diagram. So is it that only WFI is required or do we also need to power off modules as listed in this AN ?
3.
What happens if we entered system idle mode, and then got timer interrupt and doing something in busywait after the interrupt ? Is it that we moved to another state (not "system idle" mode) ? But we haven't done the exit steps described in the doc, so I am not sure what state we are in such case.
Thank you,
ranran