Hi. I confused about deep sleep on ST's Cortex M4 processor. As I understand If I use HSE as an system clock and go to deep sleep, HSE will turn off. And in wake up ST's document says HSI is used as system clock source after wake up from STOP and Standby. I tought it's because of HSI's startup time is lesser than HSE(2us and 2ms). Where I confused abaout is, after waking up should I reinitialize the clock as HSE or it will be automatically switch to HSE after stabilized.
I hope I asked it in the right section.
Sorry for bad English and Thanks for advance.
I found this about Standby mode: After waking up from Standby mode, program execution restarts in the same way as after a Reset (boot pin sampling, option bytes loading, reset vector is fetched, etc.).
But the STOP mode is still unclear. Is ıt resets the mcu too? what happening after wake up in STOP mode?
And in the STOP mode it doesn't resets. Just continues from where it had sleep. But reinitialization of clock is required because clock source changes to HSI.
I hope it helps someone who confused about.