feat(web): auto-merge CrossPoint release app image into a 16 MB flash

Accept the ~5 MB release firmware.bin directly: place it at 0x10000 in a
0xFF-erased 16 MB image alongside the bundled ESP32-C3 bootloader (0x0) and
CrossPoint partition table (0x8000). m25p80 requires a full chip-size backing,
so the 16 MB image is still built, but the user no longer pre-merges. Full
16 MB images are still accepted as-is.
This commit is contained in:
2026-07-20 08:21:38 -04:00
parent bd4aa68032
commit 90981ad154
6 changed files with 55 additions and 11 deletions
+3 -1
View File
@@ -47,7 +47,9 @@ make web
# Open http://127.0.0.1:8000/web/
```
Choose a merged 16 MB firmware `.bin`, select X3 or X4, and boot. The controls
Choose a CrossPoint firmware `.bin` — either the ~5 MB release app image (it is
merged in-browser with the bundled bootloader and partition table into a 16 MB
flash) or a full 16 MB image — select X3 or X4, and boot. The controls
map to the device's ADC button ladders and active-low Power GPIO. `make web`
serves the required COOP/COEP headers for Emscripten pthreads; a generic static
server without those headers will not work.