You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To verify, looked at CLK_SYS_CTRL with debugger and it shows 0x00000000, so the clock source is pointing to clk_ref as expected. And CLK_SYS_SELECTED shows 0x00000001 which, if I've interpreted the datasheet correctly, also means that clk_ref is selected.
Is there a reason for setting up pll_sys and then not wiring clk_sys to it?
I tried something like this but it doesn't speed up the blinking:
The problem seems to be that PLL::configure() erroneously setsREFDIV to the crystal's megahertz value:
p.cs.write(|w| unsafe{ w.bits(ref_mhz as_)});
REFDIV is 1 on boot, so setting it isn't necessary. Removing the call above combined with the stuff mentioned in the earlier comment makes Pico run at full speed. I'll make a PR about this.
kahara
added a commit
to kahara/sample-project
that referenced
this issue
May 22, 2021
To verify, looked at
CLK_SYS_CTRL
with debugger and it shows0x00000000
, so the clock source is pointing toclk_ref
as expected. AndCLK_SYS_SELECTED
shows0x00000001
which, if I've interpreted the datasheet correctly, also means thatclk_ref
is selected.Is there a reason for setting up
pll_sys
and then not wiringclk_sys
to it?I tried something like this but it doesn't speed up the blinking:
The text was updated successfully, but these errors were encountered: