From 6923183bd0b145416b019affc39dd50e60142f5d Mon Sep 17 00:00:00 2001 From: cjkas Date: Fri, 16 Oct 2026 09:15:26 +0200 Subject: [PATCH] build: give the debug build one 3 MB app slot without OTA esp32devdbg used 98.3% of the 1.5 MB OTA slot. On esp32_huge_app.csv the same 1,546,405-byte image uses 49.2%, so the refactors ahead have room. The release envs keep esp32_3MB.csv and CI keeps them within limits. NVS stays at 0x9000, but the file system shrinks from 0xE0000 to 0xD0000, so a board moving to this table needs a backup, a USB flash with uploadfs, and a restore. Co-Authored-By: Claude Opus 5.5 --- platformio.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 20b0701..5cc0523 100644 --- a/platformio.ini +++ b/platformio.ini @@ -63,7 +63,11 @@ build_flags = ${dualcore.build_flags} extends = esp32 board = esp32dev build_type = debug -board_build.partitions = esp32_3MB.csv +; One 3 MB app slot and no OTA: the debug build is never shipped and outgrew +; the 1.5 MB OTA slot. Release envs keep esp32_3MB.csv. NVS stays at 0x9000 +; but the file system shrinks, so moving a board to this table means: take a +; backup, flash over USB with -t upload -t uploadfs, then restore the backup. +board_build.partitions = esp32_huge_app.csv ; -Og only limits inlining in units over large-unit-insns (10000 by default). ; Smaller files inline ArduinoJson's helpers into every caller, which costs ; KBs of flash per file, so treat every file as large.