Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By rudy
#68898
perigalacticon wrote:I tried uploading SPIFFS files for the first time by using: Tools / Esp8266 Sketch Data Upload and I was surprised to see that it took more than 5 minutes to upload. I used the 3M SPIFFS option. Is this normal / expected? Can it be improved?

I was doing some tests with large image files loaded into 3M SPIFFS. Because of how long it took I took a slightly different route. I would load a sketch that supported OTA uploads. I would then do the SPIFFS upload through the OTA connection. That was a lot faster than serial. But that was when I was stuck using 115200 baud for serial connections.
User avatar
By perigalacticon
#68899 Can anyone program with 921600 baud? I can't with a Huzzah and FTDI cable only 256000 works. However I just programmed OTA and shocked at the speed improvement. Can you share the methods for OTA SPIFFS upload?
User avatar
By gbafamily1
#68903 Firmware and SPIFFS uploads run at 921600 on the Adafruit Feather Huzzah. It uses the CP2104 USB UART chip.

If the ESP is running a webserver capable of HTTP POST (for example, the FSBrowser sample program), you can upload files into SPIFFS instead of uploading the 3Mbyte SPIFFS image file. For example, update INDEX.HTM then to transfer the file to SPIFFS like this.

$ curl -X POST -F "data=@INDEX.HTM" http://192.168.xx.yy/edit

where 192.168.xx.yy is the IP address of the ESP.