Seems like PICO_FLASH_SPI_CLKDIV doesn't get used if its set using target_compile_definitions in CMakeLists.txt.
I also tested using "PUBLIC" instead of "PRIVATE", that didn't seem to change anything:
However, editing board definition file (or creating a "custom" one) seems to work. But on RP2350 only if PICO_EMBED_XIP_SETUP=1 is also set.
Seems odd that most (all?) board files for RP2350 boards set PICO_FLASH_SPI_CLKDIV, but setting does not get used by default.... (probably not big problem since most board files set value to 2 or 3, only handful "try" setting it to 4....)
I also tested using "PUBLIC" instead of "PRIVATE", that didn't seem to change anything:
Code:
target_compile_definitions(myproject PUBLIC PICO_FLASH_SPI_CLKDIV=4)However, editing board definition file (or creating a "custom" one) seems to work. But on RP2350 only if PICO_EMBED_XIP_SETUP=1 is also set.
Seems odd that most (all?) board files for RP2350 boards set PICO_FLASH_SPI_CLKDIV, but setting does not get used by default.... (probably not big problem since most board files set value to 2 or 3, only handful "try" setting it to 4....)
Statistics: Posted by vadelma-pi — Fri Jul 25, 2025 9:24 am