Fix partition table for the real 8MB flash, not assumed 4MB
esptool flash_id against the actual DevKitC-1 reports 8MB, not the 4MB partitions.csv/sdkconfig.defaults assumed (never verified against real hardware, just a leftover placeholder from the ESP-IDF scaffold). Half the flash was unallocated. Doubled the OTA slots to 3MB each (headroom for future sensor drivers and Blockly-generated Lua growing the app image) and let the storage partition absorb the remainder rather than leave flash unused. Verified on real hardware: builds, flashes, and boots cleanly with no errors; the app partition now reports 57% free instead of 14%. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,9 +5,10 @@
|
||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||
|
||||
# Matches the 4MB layout assumed in partitions.csv (TODO: adjust both
|
||||
# together once real hardware's actual flash size is confirmed).
|
||||
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
|
||||
# Matches the real 8MB flash (confirmed via `esptool flash_id` against
|
||||
# actual hardware, 2026-07-12) and partitions.csv's layout -- keep both
|
||||
# in sync if either changes.
|
||||
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
|
||||
|
||||
# IPv6 is required (not just the ESP-IDF default) -- transport/commissioning
|
||||
# requests a link-local IPv6 address once Wi-Fi STA connects. Explicit here
|
||||
|
||||
Reference in New Issue
Block a user