I set up a IIS web server on the local WIN8 machine to host the firmware file. Then esp8266 take the link to server for ota upgrading, but it`s failed. Can anybody help me?
I tried some methods those were all failed.
I use 1024KB flash and burn the following bin:
1.
0x00000 boot_v1.2
0xFC000 esp_init_data_default.bin
0xFE000 blank
0x01000 0x01010.bin(ld script is eagle.app.v6.new.1024.app1.ld)
When the 0x01010.bin was burned, the main function was not running. The output was messy code. Then I used the at demo, I had the same result. The at/user1.1024.new.2.bin is token from sdk file.
2.
0x00000 boot_v1.2
0xFC000 esp_init_data_default.bin
0xFE000 blank
0x40000 0x40000.bin(ld script is eagle.app.v6.ld)
After burning these bin files, the program could be running normally. server could response ota upgrade request successfully from esp8266. Then server transmitted about 6KB data in 4 packets to esp8266, after these the transmit would stop, because esp8266 didn`t receive any data. The result is following:
system_upgrade_start
upgrade_connect
Updateing...
upgrade_connect_cb
GET /0x40000.bin HTTP/1.0
Host: 192.168.150.10:80
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gec ko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
sumlength = 175336
\0xe0\0xe0\0x00\0x00\0xe0\0x00.......
I know the second method is wrong, because it use the wrong user memory. But why the download doesn`t work? The first method use the right address. However, the result is that main doesn`t run?
Has anyone have the similar problem? Please help me~ Thank you 
Statistics: Posted by luyifan — Fri Aug 28, 2015 12:08 pm
]]>