Hello
You need to set an alternate clock to be used as main clock while you change the frequency of your clock.
When the frequency of Core needs to change the voltage of the Core also need to be change. There is a rule in changing core frequency and voltage.
• Increasing core frequency, voltage first, then frequency.
• Decreasing core frequency, frequency first, then voltage.
Best regards,
Omar