Page 1 of 1

How to flash everything except the SPIFFs partition

Posted: Thu Mar 23, 2023 7:49 am
by william.ferguson.au
I'm using CMake with ESPIDF 4.4.4

I have a large SPIFFs partition (4MB) which take a long time to flash each time I make a change to the app.
But the SPIFFS partition itself hardly ever changes.

Is there a simple way to flash the app binary, partition table (which includes an entry for the SPIFFS partition) etc, but NOT flash the unchanged SPIFFs partition?

Re: How to flash everything except the SPIFFs partition

Posted: Fri Mar 24, 2023 7:03 am
by william.ferguson.au
Anyone?
Or is this the wrong part of the forum for this question?

Re: How to flash everything except the SPIFFs partition

Posted: Fri Mar 24, 2023 8:50 am
by ESP_Sprite
The spiffs contents get created/flashed by a spiffs_create_partition_image() line in a CMakeLists.txt file somewhere. If you comment that line out by prefixing it with a '#', the partition isn't created/flashed anymore.

Re: How to flash everything except the SPIFFs partition

Posted: Fri Mar 24, 2023 1:04 pm
by william.ferguson.au
Huh thanks.

I was sure that when I tried that previously it still wrote the SPIFFs partition.