System clock restore to default
Hello,
I need to restore the system clock to its default state, after it has been configured to generate 64MHz clock signal from an external 24MHz oscillator.
I used the HAL_RCC_DeInit() function, that seems to do most of the job, but not all apparently.
Some register, indeed, mantains the 64 MHz configuration value.
For example the main regulator output voltage settings (PWR->CR1.PWR_CR1_VOS), and flash wait states are not restored to default values.
Is it problem?
Is it enough to call HAL_RCC_DeInit(), or I need to call some other functions to complete the clock restore operation?
Thank you,
Carlo
