STM32F4: Waking from sleep, can't get HSE/PLL running
I'm toggling an I/O in the SYSTICK interrupt every 0.5 seconds with the processor running at 168MHz and using an RTC interrupt to wake the CPU from sleep. This all works well and the processor wakes up after the programmed interval. As per the HAL manual, the CPU is running on HSI (16MHz) after waking from sleep. Whatever I do I can't seem to get the clock changed back to HSE/PLL. I've tried all variants of explicitly turning PLL off, running the full clock configuration, and running the Cube example code but whatever I do the I/O toggles at 5 seconds rather than 0.5 (168/16 * 0.5) after the wake from sleep.
I've got similar code running perfectly on the L4 chips.
All ideas appreciated