Open codetiger opened 4 weeks ago
Not sure why, but with SDK 2.0, it works only with
#define PICO_FLASH_SPI_CLKDIV 4
Not sure why, but with SDK 2.0, it works only with
define PICO_FLASH_SPI_CLKDIV 4
that is certainly surprising.
After comparing my whole codebase, I found that in previous version I fixed this problem using
PICO_XOSC_STARTUP_DELAY_MULTIPLIER
set to 64. However that didn't fix the issue after upgrading to SDK 2.0. This time I also had to change the PICO_FLASH_SPI_CLKDIV
to 4. There is no other change in my code.
I've overclocked the chip.
But I'll confirm if I'm able to reproduce the same with a minimal code example.
Yes, am able to reproduce.
Overclocking Configuration
vreg_set_voltage(VREG_VOLTAGE_1_20);
sleep_ms(1);
set_sys_clock_khz(266 * 1000, true);
Old SDK version worked with
#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64
#define PICO_FLASH_SPI_CLKDIV 2
New SDK version works only with
#define PICO_FLASH_SPI_CLKDIV 4
and the PICO_XOSC_STARTUP_DELAY_MULTIPLIER
set to 64 does not have any effect in new sdk.
renamed the issue, since the missing binary info is now fixed
I've a custom PCB based on RP2040 and tried upgrading the SDK to the latest version. What is observed is the device won't start when reset, but works perfectly when dropping UF2. This problem sounds familiar and I went through this when I first tried to run code on the custom PCB. I fixed the issue with the below lines
After compiling the code using SDK 2.0, the issue started again. Tried setting the same config in the CMakeLists.txt
But does not solve the issue.
Using picotool to see what's the difference in the uf2 below is what I found
If you see closely the parameter
boot2_name
is missing in the UF2 file.