Only Flash Changed Partitions

lotharyx
Posts: 12
Joined: Fri Dec 13, 2019 4:41 am

Only Flash Changed Partitions

Postby lotharyx » Tue Apr 29, 2025 3:59 pm

I'm developing against ESP32-C3-MINI-1 with Visual Studio Code in Windows 10.

My project involves providing a captive Wi-Fi portal that presents a control interface for a device. This, of course, means my ESP32 project involves httpd and web content.

Following some suggestions I've seen around, I've set up custom partitions so that my web content files are separate from my application code. The idea, of course, being that I'll most likely be modifying one or the other during a test cycle, and want to save time and FLASH wear by only writing the partition that changed.

So far, whenever I use the ESP-IDF extension to flash the device, it always writes all partitions. This makes sense, because I haven't told it not to do that.

How do I tell it to only flash the partition(s) that changed?

MicroController
Posts: 2694
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Only Flash Changed Partitions

Postby MicroController » Wed Apr 30, 2025 10:43 pm

How do I tell it to only flash the partition(s) that changed?
I guess you'll have to 'manually' flash only the desired .bin files. (See the generated files in "build", like "flash_app_args", "flash_bootloader_args", "flash_project_args", &c.)
It may be possible to summon some CMake magic to detect which .bins changed and generate corresponding flashing arguments, but AFAICT that's not available out-of-the-box with the IDF.

Who is online

Users browsing this forum: Bing [Bot] and 3 guests