- Fri Jul 24, 2015 9:50 am
#24163
kenn wrote:As far as I know you can't simply compile and upload small parts because you're uploading full, packed bin file(s) every time,
I've been able to successfully update individual parts of Flash. For example, I was able to re-flash a SPIFFS block with different data and the existing app correctly used the updated information.
As for faster flashing, instead of using a monolithic image file with 0xff padding in the empty space I now use a sparse combined image file. That way, none of the inter-image padding needs to be sent to the device thus reducing the time required. I wrote a new tool that combines aspects of esptool-ck and esptool.py and also supports the sparse combined images. The C++ source code, standard Linux makefile, MSVC makefile, and pre-built Windows command line app are available on github:
esp_tool