I'm trying to implement OTA upgrade with the NON-OS SDK 2.2.0 on the ESP8266, upgrading from a local server.
My application finds the file (I can see in the server log that the HEAD and GET request succeeded) and the ESP seems to erase some sectors.
However, after all sector have been erased, nothing seems to happens, system_upgrade_flag_check() always returns UPGRADE_FLAG_START until the timeout on the upgrade expires (set through struct upgrade_server_info.check_times), even with larges timeout values as 180000 seconds.
The output from the SDK is as follow:
Code: Select all
pusrdata = HTTP/1.0 200 OK
server do not support HEAD method now send GET message
pusrdata = Server: SimpleHTTP/0.6 Python/2.7.9
Date: Tue, 05 Jun 2018 12:40:31 GMT
Last-Modified: Mon, 04 Jun 2018 13:49:22 GMT
sumlength = 231316
erase sector=1 ok
erase sector=2 ok
erase sector=3 ok
(more erase ok...)
erase sector=55 ok
erase sector=56 ok
erase sector=57 ok
ALL=57 sectors erase ok!
totallen = 17
totallen = 1477
totallen = 2937
totallen = 230697
totallen = 231519
(nothing more is printed)...
upgrade_check_cb << Called on timeout, here I check the flag indicating the result of the upgrade: it is always false (failed, upgrade_flag == false)
Have you ever encountered this issue, and have some idea ?
What output should I excpect in the console along the whole OTA process ?
My config is:
2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user2 @ 81000
Compiled with ./gen_misc.sh, selcting the options above.
I would love you !
I'm stuck and have no idea on how to get more debug info...