I want to know that what is the effection when power mode switch failed .For example, I changed power mode from HSRUN to RUN ,if it fails.what will happened? whether system can not wakeup if system go to VLPS mode failed?
At first, please use the newest SDK:
If the change of power modes failed the system stay in RUN mode.
There is a PMSTAT register which indicates the current power mode of the system, see section "39.3.6 Power Mode Status register (SMC_PMSTAT)" in the RM rev. 9.
Regarding VLPS there is VLPSA field :
"This field is cleared by reset or by hardware at the beginning of any stop mode entry sequence and is set if the sequence was aborted. "
Note: stop mode is not supported by HSRUN.
I hope it helps,
I understand, but in the older versions, some issues can exist which are fixed in the new versions.
The system clock before the transition to VLPS is not correctly reconfigured in this SDK v0.8.6.
When the transition to VLPS it is recommended to disable the PLL, FIRC, and SOSC.
I hope it helps.
At first, please, make sure that the FIRC, SOSC, and SPLL clocks are disabled in VLPS mode. If not it may lead to the mode transition to fail.
Please refer to the section "27.4.4 VLPR/VLPS mode entry"
"When entering VLPR/VLPS mode, the system clock should be SIRC. The FIRC, SOSC,
and SPLL must be disabled by software in RUN mode before making any mode
The FIRCREGOFF bit is not being correctly configured in the SDK v0.8.6.
Thank you for your information.
Could you please give me more information about "The system clock before the transition to VLPS is not correctly reconfigured in this SDK v0.8.6." And do you mean we need to disable the PLL,PIRC and SOSC when we switch power mode to VLPS to avoid self problems of sdk 0.8.6. If the switch to VLPS fails, will it fail to wake up by external interrupt?and MCU can not wake up again except reset?