How to flash everything except the SPIFFs partition

william.ferguson.au
Posts: 107
Joined: Wed Jan 02, 2019 8:55 am

How to flash everything except the SPIFFs partition

Postby william.ferguson.au » Thu Mar 23, 2023 7:49 am

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?

william.ferguson.au
Posts: 107
Joined: Wed Jan 02, 2019 8:55 am

Re: How to flash everything except the SPIFFs partition

Postby william.ferguson.au » Fri Mar 24, 2023 7:03 am

Anyone?
Or is this the wrong part of the forum for this question?

ESP_Sprite
Posts: 8884
Joined: Thu Nov 26, 2015 4:08 am

Re: How to flash everything except the SPIFFs partition

Postby ESP_Sprite » Fri Mar 24, 2023 8:50 am

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.

william.ferguson.au
Posts: 107
Joined: Wed Jan 02, 2019 8:55 am

Re: How to flash everything except the SPIFFs partition

Postby william.ferguson.au » Fri Mar 24, 2023 1:04 pm

Huh thanks.

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

Who is online

Users browsing this forum: No registered users and 61 guests