Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5174

SDK • rp2350 changing flash clock rate

$
0
0
On the rp2040 I change the flash clock rate using the function

Code:

void __no_inline_not_in_flash_func(modclock)(uint16_t speed){       ssi_hw->ssienr=0;       ssi_hw->baudr=0;       ssi_hw->baudr=speed;       ssi_hw->ssienr=1;}
How do I do this on the rp2350?

MMBasic builds with the flash clock divider set to 4 to allow for overclocking the processor but if the processor is not overclocked the above function is used at runtime to set the flash clock to normal

Code:

    if(Option.CPU_Speed<=200000)modclock(2);
I can't see any obvious equivalent in the rp2350 datasheet although they may be some of the 1345 pages I haven't read yet ;)

Statistics: Posted by matherp — Tue Aug 13, 2024 4:21 pm



Viewing all articles
Browse latest Browse all 5174

Trending Articles