Is is possible to upload both application code and spiffs filesystem to the ESP8266 at the same time?
Currently this requires a two stage upload:
pio run -t upload
pio run -t uploadfs
-v output, I see esptool is running:
esptool -vv -cd nodemcu -cb 921600 -cp "/dev/ttyUSB0" -cf .pioenvs/emonesp_fast/firmware.bin
esptool -vv -cd nodemcu -cb 921600 -cp "/dev/ttyUSB0" -ca 0x300000 -cf .pioenvs/emonesp_fast/spiffs.bin
Could these two commands be combined? If this is not possible with Pio, is it possible using epstool to flash the two .bin’s?
Please correct me if I’m wrong but currently is it correct that pio does not have a way to mkspiffs to generate the spiffs.bin without running
uploadfs target? I would like to build the spiffs package together with the application using Pio on TravisCI saving the .bins to github releases then upload later via OTA from the ESP.