Repository navigation
4 MB partition table: 1.75 MB A/B app slots (5/7) - #46
Merged
Merged
Conversation
… KB fs The C3 envs ran the stock Arduino default.csv: 1.25 MB app slots at 91% full while the 1.375 MB LittleFS partition sat ~84% empty (the web UI needs ~220 KB incl. gzipped copies). partitions_4mb.csv rebalances: spiffs shrinks to 384 KB (~57% used) and the freed 1 MB splits equally across both OTA slots — app0/app1 go 1.25 MB -> 1.75 MB, dropping the build from 91% to 65% used. nvs/otadata/coredump keep their stock offsets, so device config (WiFi etc.) survives the repartition; only the filesystem needs a re-upload. OTA-compat fork documented in docs/HARDWARE.md: the table change itself is a one-time USB-serial flash, and devices on the stock layout must not OTA onto images built for this one (a >1.25 MB app physically can't fit the old slot). S3 envs (8/16 MB flash, also on the stock 4 MB table today) are left as-is — retabling them is its own deliberate change. Verified: builds at 65.2% (1,196,234 / 1,835,008); flashed to the XIAO C3 and boot-verified on hardware. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Sep 12, 2026
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
Custom 4 MB partition table for the two C3 envs: 1.75 MB A/B app slots (was 1.25 MB) and a 384 KB filesystem (was 1.375 MB, ~84% empty). Firmware flash use drops from 91% to 65%.
nvs/otadatakeep their stock offsets, so saved settings (WiFi etc.) survive; only the filesystem needs a re-upload.Verification
Built and tested on this branch alone. This stacked state is new, so it was verified independently rather than assumed: 81/81 native tests pass, the firmware builds for
seeed_xiao_esp32c3(65.2% of the app partition, the new 1.75 MB slot), and the web UI JS passesnode --check.Also flashed and boot-verified on a XIAO ESP32-C3 (filesystem mounts at the new offset).
🤖 Generated with Claude Code
The stack (merge top to bottom):