Commit 8c1afc7
committed
Set PICO_FLASH_SPI_CLKDIV=2 when building boot2
The assembly files contain a configurable clock divider, with a default
value of 4. The C SDK overwrites this value with 2, eg. for the rp pico:
https://github.com/raspberrypi/pico-sdk/blob/master/src/boards/include/boards/pico.h#L70
Because we didn't set that value in rp2040-boot2-rs, rust firmwares
effectively ran the flash chip at half speed.
Therefore, set the preprocessor define from build.rs, to match what the
C SDK does.1 parent 4b7adf8 commit 8c1afc7
File tree
7 files changed
+1
-0
lines changed- bin
7 files changed
+1
-0
lines changedBinary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments