These are chat archives for esp8266/Arduino

9th
Aug 2016
Shelby Merrick
@forkineye
Aug 09 2016 00:06
Is there anyway to flash both the sketch space and spiffs space without resetting the chip in between? I'm looking at the esptool code, but it's not jumping out at me. Was wanting to write a small tool to flash both without having to enter programming mode twice.
Ivan Grokhotkov
@igrr
Aug 09 2016 02:13
sure, just run esptool -ca 0x0000 -cf sketch.bin -ca 0x100000 -cf spiffs.bin
add -cp -cb -cd options to taste
The line you pointed at is only executed in case of an error during upload
Note that this normally doesn't involve external reset. We just instruct the ROM bootloader to jump to app entry point.
MegaGarynych
@MegaGarynych
Aug 09 2016 10:32
Hi guys. I am testing http update function on esp8266-12 and it is working well. But on esp8266-07 (flash 1M (512 SPIFFS) ) it is not working. Http error: To less space. Is it possible to use http update with this module?
Ivan Grokhotkov
@igrr
Aug 09 2016 10:43
Possible, but you need to select another option with small SPIFFS size
If the flash chip is 1M, and 512k is taken by SPIFFS, then only 512k is left for two copies of your sketch. Most likely, it isn't enough.
Make sure that size(SPIFFS) < 1M - 2 * size(sketch)
MegaGarynych
@MegaGarynych
Aug 09 2016 11:00
Oh big thanks! I am understand how it is work :smile: Now all OK. Great work Ivan!
Stavros Korokithakis
@skorokithakis
Aug 09 2016 11:35
@MegaGarynych this may be useful to you https://gitlab.com/stavros/espota-server/
MegaGarynych
@MegaGarynych
Aug 09 2016 11:50
@skorokithakis thanks now all works ok. Problem was in wrong flash settings.
Stavros Korokithakis
@skorokithakis
Aug 09 2016 11:51
@MegaGarynych np, but that wasn't meant for your problem, it's a server that can serve the firmware over http
MegaGarynych
@MegaGarynych
Aug 09 2016 11:55
@skorokithakis ok I will see it later, thanks
Shelby Merrick
@forkineye
Aug 09 2016 11:59
Thanks @igrr , that's exactly what I needed!