These are chat archives for esp8266/Arduino

24th
May 2017
Ivan Grokhotkov
@igrr
May 24 2017 15:13
@riataman good to know! manual process, what kind of :poop: is that...
Pablo2048
@Pablo2048
May 24 2017 18:05
I'm using this for my 4M2M layout:
/* Flash Split for 4M chips */
/* sketch 1019KB */
/* empty  1024KB */
/* spiffs 2028KB */
/* eeprom 20KB */

MEMORY
{
  dport0_0_seg :                        org = 0x3FF00000, len = 0x10
  dram0_0_seg :                         org = 0x3FFE8000, len = 0x14000
  iram1_0_seg :                         org = 0x40100000, len = 0x8000
  irom0_0_seg :                         org = 0x40201010, len = 0xfeff0
}

PROVIDE ( _SPIFFS_start = 0x40400000 );
PROVIDE ( _SPIFFS_end = 0x405FB000 );
PROVIDE ( _SPIFFS_page = 0x100 );
PROVIDE ( _SPIFFS_block = 0x2000 );

INCLUDE "../ld/eagle.app.v6.common.ld"
Pablo2048
@Pablo2048
May 24 2017 18:11
... and this is in boards.txt:
generic.menu.FlashSize.4M2M=4M (2M SPIFFS)
generic.menu.FlashSize.4M2M.build.flash_size=4M
generic.menu.FlashSize.4M2M.build.flash_ld=eagle.flash.4m2m.ld
generic.menu.FlashSize.4M2M.build.spiffs_start=0x200000
generic.menu.FlashSize.4M2M.build.spiffs_end=0x3FB000
generic.menu.FlashSize.4M2M.build.spiffs_blocksize=8192
generic.menu.FlashSize.4M2M.build.spiffs_pagesize=256
generic.menu.FlashSize.4M2M.upload.maximum_size=1044464
sticilface
@sticilface
May 24 2017 21:51

anyone got any ideas... I've been using the http updater for ages with no problems... now i get this with basically every update

[httpUpdate] Update.writeStream failed! (ERROR[6]: Stream Read Timeout)

there have been changes to writeStream and timeouts in some of the recent commits, but rolling them back does not seem to make a difference. It is a bit strange... download works absolutely fine. any tips on where i might look next?

sticilface
@sticilface
May 24 2017 22:11
so far increasing the default timeout for the httpclient used in httpupdater seems to work. 0 fails out of 5, whereas 5/5 failed previously
HTTPUpdateResult ESP8266HTTPUpdate::update(const String& url, const String& currentVersion)
{
    HTTPClient http;
    http.setTimeout(60000);
    http.begin(url);
    return handleUpdate(http, currentVersion, false);
}