flasher: ISP Production builds (v0.3.1 + v0.2.1) as top local entries - #124
Merged
Conversation
The firmware repo's GitHub Pages catalog has no ISP/OTA build, so the production-with-ISP panel firmware can't be flashed from the published manifest. Ship those two images with the flasher instead. - Commit the UF2s under flasher/firmware/ (g6-panel-v0.3.1-isp.uf2, g6-panel-v0.2.1-isp.uf2). Built from the firmware repo's panel-isp branch with PlatformIO 6.1.19 (the version pixi pins) via `pio run -d panel -e pico_v031 -e pico_v021` — i.e. the same build as `pixi run build31`/`build21`, run directly because pixi.toml is platforms=["linux-64"] and won't solve on this host. Both images compile src/isp.cpp + PicoOTA + LittleFS (ISP/OTA in, production code). - flasher.js: merge a local LOCAL_BUILDS list ahead of the remote catalog. Local builds carry local:true (onFlashClick fetches `file` relative to this page — same-origin, no CORS) and a `section` that pins them to their own optgroup at the top of the dropdown, with v0.3.1 ISP Production as the selected default. The remote catalog is now best-effort (local builds still flash if Pages is unreachable), and a remote `default` is cleared so the local default wins. - Bump the flasher footer to v0.2. Verified by running the real flasher.js under DOM/fetch stubs against the live manifest (dropdown order, single default, same-origin resolution) and by serving the tree over HTTP (resolved UF2 paths 200 + byte-match). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Make v0.3.1 ISP Production and v0.2.1 ISP Production the first two entries in the WebUSB flasher's build dropdown, served from UF2s committed in-repo.
The firmware repo's GitHub Pages catalog (
manifest.json) publishes Production + BCM self-test builds but no ISP/OTA build, so the production-with-ISP firmware can't be flashed from the published manifest. This ships those two images alongside the flasher.Dropdown after this change
Changes
flasher/firmware/g6-panel-v0.3.1-isp.uf2,g6-panel-v0.2.1-isp.uf2— new, 262144 bytes each. Built from the firmware repo'spanel-ispbranch with PlatformIO 6.1.19 (the versionpixipins) viapio run -d panel -e pico_v031 -e pico_v021— the same build aspixi run build31/build21, invoked directly becausepixi.tomlisplatforms=["linux-64"]and won't solve on macOS. Both images compilesrc/isp.cpp+PicoOTA+LittleFS(ISP/OTA included; full production code, not the SD-cardmake_isp_image.pyfooter path).flasher/flasher.js— merge a localLOCAL_BUILDSlist ahead of the remote catalog:local: true→onFlashClick()fetchesfilerelative to this page (same-origin, no CORS) instead of fromFW_BASE.sectionpins them to their own optgroup at the top;default: trueselects v0.3.1 ISP.defaultis cleared so the local default wins (a<select>keeps the last selected option).flasher/index.html— footer bump to v0.2.Verification
flasher.jsunder DOM/fetchstubs against the live manifest — 18 assertions: optgroup/entry order, exactly one selected default (remote default cleared), andonFlashClickresolving the local UF2 same-origin (relative path, never underFW_BASE).flasher/firmware/*.uf2) return HTTP 200 with valid UF2 magic (5546320a), 262144 bytes, and served SHA-256 == committed SHA-256.SHA-256:
b2f06b70…acd8e(v0.3.1),d4d97559…f680(v0.2.1).Branched off
main; independent of other in-flight work (touches onlyflasher/).🤖 Generated with Claude Code