arduino / ArduinoCore-mbed

330 stars 192 forks source link

Raspberry Pi Pico change SPI flash clock divider #745

Open luki34567780 opened 10 months ago

luki34567780 commented 10 months ago

Is it currently possible to change the SPI flash clock divider for the Raspberry Pi Pico? The way to do this with the Pico SDK would be to define PICO_FLASH_SPI_CLKDIV, but this doesn't seem to have any effect here.

sabas1080 commented 10 months ago

x2

sabas1080 commented 9 months ago

Any Updates??

luki34567780 commented 9 months ago

I've switched to earlephilhower's core. With it you can just modify the board config to change the SPI flash divider. (find your board in C:\Users\<user>\.platformio\platforms\raspberrypi@src-ff76a3915224135aafad379817f41edd\boards and change "boot2_source" from <something>_2_padded_checksum.S to <something>_4_padded_checksum.S. Also make sure that you got the correct board (there is a pico.json and a rpipico.json)