Open DmitriLyalikov opened 1 year ago
It's not exactly as simple, as the clock source passed to configure_clock
must have a higher frequency than the target frequency. So if you want to overclock, what you need to do is increase the frequency of pll_sys.
You can find a nice example how to do that in the Neotron BIOS: https://github.com/Neotron-Compute/Neotron-Pico-BIOS/blob/develop/src/main.rs#L346-L404
Hi all,
I am looking at overclocking my sys_clk to speed up the pio state machines, at for example, 250 Mhz.
I am using the standard 12Mhz XOSC on board and want to either configure the SYS_PLL, or sys_clk at runtime.
I have the following:
in clocks/mod.rs the trait has ClocksManager and I wonder if i can simply do:
and instead of pll_sys.get_freq() replace to HertzU32::MHz(248)? If not, what is the correct mechanism to configure this? All help is appreciated. Thanks -Dmitri