How to build different capacity of SPI Flash for RP2 PICO? #11739
-
I try to replace RP2 PICO SPI Flash to 16MB (W25Q128JV_SQ, this model already in
When build it, appear error:
it seems not work(MicroPython runs fine and prompt appear correct, but the MicroPython SPI Flash user drive not appear.) Which files should I modify? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You have to define PICO_FLASH_SIZE_BYTES in mpconfigboard.h as well as 16 * 1024 * 1024. It is by default defined as 2 MB. |
Beta Was this translation helpful? Give feedback.
You could indeed change the line in Pico-SDK, or
#undef PICO_FLASH_SIZE_BYTES
before re-defining it, or use a Board with 16 MB flash as template.Flash chips may need slightly different command sets. So line defines, which flash chip (Windbond, 1 MB) is used. Which does not match the PICO anyhow. But most flash chips use the same command set for standard operations like read, program, erase.