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:
clocks.clk_sys_ctrl.modify(|_, w| w.auxsrc().clksrc_pll_sys() );
clocks.clk_sys_ctrl.modify(|_, w| w.src().clksrc_clk_sys_aux() );
while clocks.clk_sys_selected.read().bits() != 2 {}
To verify, looked at
CLK_SYS_CTRLwith debugger and it shows0x00000000, so the clock source is pointing toclk_refas expected. AndCLK_SYS_SELECTEDshows0x00000001which, if I've interpreted the datasheet correctly, also means thatclk_refis selected.Is there a reason for setting up
pll_sysand then not wiringclk_systo it?I tried something like this but it doesn't speed up the blinking: