When the microcontroller starts the frequency of operation (core) is set to 95.9774 MHz using the internal reference clock (32.768 kHz).
In order to store non-volatile information to the microcontroller, the last segment of the flash memory is used, and the power mode is switched from HSRUN to RUN with a core frequency of 62.9MHz. The writing to the flash memory is successful and then the microcontroller is switched back to HSRUN, however the core frequency instead of going back to 95.9774 MHz it goes to 83.88 MHz.
To set RUN mode:
powerModeConfig.powerModeName = kPowerModeRun;
To set HSRUN mode:
powerModeConfig.powerModeName = kPowerModeHsrun;
g_defaultClockConfigRun and g_defaultClockConfigHsRun configuration attached (both generated by processor expert)
Any idea why the HSRUN frequency is not returning to 95.9774MHz?
Any help appreciated.
Original Attachment has been moved to: clock_configurations.txt.zip