#19153·esp-idf

idf.py flash - ability to specify or erase additional partitions (IDFGH-18367)

Author: Bryght-Labs-RichardCreated Sep 29, 2026Updated Sep 30, 2026
LabelsType: Feature RequestStatus: Opened

Is your feature request related to a problem?

My system has 2x2 upgradable application partitions. These are used for A/B OTA updates of two different programs. When developing, I need to ensure there is 1x copy of each program, and at least a broken checksum for each of the spare application slots.

Describe the solution you'd like.

I'd like the ability to specify a binary per partition, perhaps in the partitions.csv file. It would look like this:

Booter1,     app,  ota_2,    someAddress,     smolSz, booter/build/booter.bin
Booter2,     app,  ota_3,    someAddress,     smolSz, 0xff.bin
MainAp1,     app,  ota_0,    anotherAddress,     bigSize, <nothing here>
MainAp2,     app,  ota_1,    anotherAddress,     bigSize, 0xff.bin

where booter/build/booter.bin is the path to another ESP-IDF project that built an additional program, and ff.bin holds 4KB of 0xFF data, just used for erasing.

Describe alternatives you've considered.

Currently I have my own flash.bat & flash.sh which wrap esptool. But idf.py build flash monitor is much nicer since it can quickly reboot from flash to monitor without rescanning the USB device tree.

Additional context.

No response