From 5339452932426f29102a42de2f1c43bc6a6aff45 Mon Sep 17 00:00:00 2001 From: Jose Cruz Toledo <1273555+jctoledo@users.noreply.github.com> Date: Sun, 8 Feb 2026 09:28:22 -0800 Subject: [PATCH] Fix local flash to use custom 2.5MB partition table The CI workflow already passes --partition-table to espflash save-image (18a0cd5), but the local cargo runner was still using the default partition layout, causing flash failures for the 1.4MB firmware binary. Co-Authored-By: Claude Opus 4.6 --- sdkconfig.defaults | 2 +- sensors/blackbox/.cargo/config.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdkconfig.defaults b/sdkconfig.defaults index 17c4301..79291fa 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -4,7 +4,7 @@ CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192 CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096 CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y # Note: Custom partition table disabled - using default partition layout -# To use custom 2.5 MB app partition locally, uncomment and ensure partitions.csv exists: +# espflash uses --partition-table flag instead (configured in .cargo/config.toml) # CONFIG_PARTITION_TABLE_CUSTOM=y # CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" CONFIG_COMPILER_OPTIMIZATION_SIZE=y diff --git a/sensors/blackbox/.cargo/config.toml b/sensors/blackbox/.cargo/config.toml index 60bcdb5..b3c8351 100644 --- a/sensors/blackbox/.cargo/config.toml +++ b/sensors/blackbox/.cargo/config.toml @@ -3,7 +3,7 @@ target = "riscv32imc-esp-espidf" [target.riscv32imc-esp-espidf] linker = "ldproxy" -runner = "espflash flash --monitor" +runner = "espflash flash --monitor --partition-table ../../partitions.csv" [env] ESP_IDF_SYS_ROOT_CRATE = "blackbox"