Skip to content

feat(spi): host file/mmap backing for -spi-flash1/2 - #7

Open
eositis wants to merge 1 commit into
Night-Traders-Dev:mainfrom
eositis:pr/upstream-spi
Open

feat(spi): host file/mmap backing for -spi-flash1/2#7
eositis wants to merge 1 commit into
Night-Traders-Dev:mainfrom
eositis:pr/upstream-spi

Conversation

@eositis

@eositis eositis commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • New spi_flash.c / spi_flash.h: 2 chips, mmap, default flash/spi-flash{1,2}.bin
  • CLI: -spi-flash1/2 and -spi-flash1/2-size
  • Docs: docs/SPI-FLASH.md

Excluded: MegaFlash ProDOS units, USB guest stubs, XMODEM.

Test plan

  • make -C build bramble bramble_tests && ./build/bramble_tests
  • ./bramble fw.uf2 -spi-flash1 /tmp/t.bin -spi-flash1-size 64 creates/maps file

Lets firmware exercise external SPI NOR images without MegaFlash/USB guest
stubs. Includes macOS corepool build fixes required to compile on Darwin.

Co-authored-by: Cursor <cursoragent@cursor.com>
@eositis

eositis commented Aug 8, 2026

Copy link
Copy Markdown
Author

the thomasfok/megaflash project uses a pair of SPI flash devices. not really a pico native feature, so might not be interesting to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant