Do I need to make custom partition to be able to upload spiffs.bin?

The problem actually came from the update implementation. It did not read spiffs file name properly
This is working:

int cmd = (filename.indexOf("spiffs") > -1) ? U_SPIFFS : U_FLASH;

It was > 0 before so even though I gave it a spiffs.bin it couldn’t read it, and it set the mode to U_FLASH while trying to use a spiffs.bin

1 Like