Reinitialise Serial communication after overclocking pico

In my program written with Arduino SDK , I increased the CPU clock of my pico:

#include "hardware/vreg.h"

//Set vreg to maximum: is necessary before overclocking the pico
vreg_set_voltage (VREG_VOLTAGE_1_30);

// set CPU clock to 300MHz...
set_sys_clock_pll(300 *12000000, 6, 2);

//do something really fast (pico does it!)
...

// Now slow down CPU clock to regular speed = 125MHz - Pico deos it correctly
set_sys_clock_pll(125 *12000000, 6, 2);

//initialise Serial port: >>>>This does not work! - There is no connection to the serial
//monitor possible even though the CPU clock speed was set "back to normal"
Serial.begin( (9600);
...(aim: shuffle the results to the serial port)

It seems that the serial port is somehow knocked out by preivous overcklocking (is true for clock speed >295 MHz)
--> Question: Is there any way to "re-initialise" the serial port?

I do not know your part but I have seen internal latch up when overclocking a processor. Normally powering down and back up generally fixes it, sometimes a rest will do that.

I moved your topic to an appropriate forum category @anon64141892

In the future, when creating a topic please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.