|
Hello,
why not switch to slow or main (oscilator) clock first, then change parameters for pll, wait for pll to stabilize and then switch back?
Also note that there is a speed range where the flash does not work properly. If this range is touched while changing the speed with the pll I expect an undefined error.
MCK: Limited Master Clock Frequency Ranges If the Flash is operating with ... wait states, the frequency of the Master Clock MCK must be lower than 3 MHz or higher than ... MHz.
Greetings, Thorsten
|