Hi all, I installed the AsyncElegantOTA, which works fine! I work with Arduino to program my ESP32, it has a menu entry “Export compiled binary file” and this creates a firmware in a “.bin” file. But there is no menu for building the SPIFFS filesystem image, and I don’t want to switch to Visual Studio Code. I guess there must be a way to create the image just by a command line. Would somebody please tell me this command?
I’m working on Linux (Ubuntu) and Arduino 1.8.15. I added the “ESP32 sketch data upload” tool which creates the bin – file, but the file gets deleted before I could copy it from /tmp.
I find out this article, but I haven’t tried it: https://www.programmersought.com/article/85843256396/
You can also check the documentation; https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/storage/spiffs.html#mkspiffs
Alternatively, you can follow the instructions we suggest in this article: https://randomnerdtutorials.com/esp32-ota-over-the-air-arduino/#update-filesystem-arduino
I hope this helps.
thank you, I tested your three suggestions. The first two depend on the tool “spiffsgen.py” which is part of the ESP-IDE. So to use this approach I have to install ESP-IDE first and then take the tool. This is not really a problem, but there is another drawback: the tool needs some parameters, it gets invoked by “python spiffsgen.py <image_size> <base_dir> <output_file>”. As long as you don’t know the right image_size I would not recommend this approach.
I like the third way much more: just invoke the “ESP32 Sketch Data Upload” without any ESP32 connected. It should give an error (because there is no ESP32 connected) and tell you the path to the .bin file which is generated automatically … but I could not find a file in this path, like I said in my first post.
Now after searching the whole filesystem I found out that the file can be found in a different place (example):
Arduino tells me: “[SPIFFS] upload : /tmp/arduino_build_123456/project1.spiffs.bin”
Filebrowser shows me: /tmp/snap.arduino/tmp/arduino_build_123456/project1.spiffs.bin
Here I can grab the .bin file and upload it via ElegantOTA. Great!