Page 1 of 2
SPIFFS upload time
Posted:
Sun Aug 06, 2017 3:37 pm
by perigalacticon
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?
Re: SPIFFS upload time
Posted:
Sun Aug 06, 2017 3:58 pm
by btidey
Upload from IDE transfers whole space (3M). At default baud rate 115200 that's maybe about 10kBsec. So 300 seconds which is what you see.
Options are:
use 1M SPIFFS if that is sufficient (third of the time)
use faster baud rate e.g. 512000
after first transfer use the ftp library to transfer running at wifi speeds
Re: SPIFFS upload time
Posted:
Sun Aug 06, 2017 5:29 pm
by rudy
I have reliability issues with some of my setups. They can't all do 512K so I mostly use 256K. And as stated, using 1M is faster. I rarely need more than that space.
Re: SPIFFS upload time
Posted:
Sun Aug 06, 2017 7:25 pm
by martinayotte
I must admit that I've never use Data upload, but I suspect that maybe an SPIFFS.format() is done on every uploads, which is always take time.