自己的 ota upgrade server

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: 自己的 ota upgrade server

Postby ESP_Faye » Tue May 05, 2015 3:11 pm

Hi,

master-device-key.bin is only needed when you need to use Espressif Cloud.

If you are using your own server, master-device-key.bin need not to be written into flash.

You can just download
0x00000 boot_v1.3(b3)
0x01000 user1.1024.new.bin
0xFC000 esp_init_data_default.bin
0xFE000 blank.bin

If your problem is still unsolved, please offer the capture picture of your flash download tool while you burning images into flash.

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

Re: 自己的 ota upgrade server

Postby alexchang » Tue May 05, 2015 4:18 pm

here it is.
Attachments
2015-05-05_16-15-48.jpg
flash tool screen
2015-05-05_16-15-48.jpg (158.68 KiB) Viewed 24609 times

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: 自己的 ota upgrade server

Postby ESP_Faye » Tue May 05, 2015 4:28 pm

Hi,

Please using Espressif Official flash download tool http://bbs.espressif.com/viewtopic.php?f=7&t=25

Select Flash size 8 Mbit on flash download tool according to http://bbs.espressif.com/viewtopic.php?f=10&t=305

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

Re: 自己的 ota upgrade server

Postby alexchang » Tue May 05, 2015 4:37 pm

Here it is, same result.
Attachments
2015-05-05_16-36-30.jpg
2015-05-05_16-36-30.jpg (432.66 KiB) Viewed 24608 times

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: 自己的 ota upgrade server

Postby ESP_Faye » Tue May 05, 2015 4:42 pm

Hi,

when running user1.bin , please download user2.bin.

Could you offer your test code and your bin files? I'll download and have a try.

what's your SDK version ?

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

Re: 自己的 ota upgrade server

Postby alexchang » Tue May 05, 2015 4:59 pm

sent you already, thanks!

xyuz
Posts: 8
Joined: Wed Nov 12, 2014 4:27 pm

Re: 自己的 ota upgrade server

Postby xyuz » Wed May 06, 2015 10:29 am

我目前是这么做的供参考:
实现一个http下载将bin2放对位置(4KB + (FlashSize) / 2),后执行
system_upgrade_flag_set(2);
system_upgrade_reboot();
完成升级

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: 自己的 ota upgrade server

Postby ESP_Faye » Thu May 07, 2015 3:48 pm

Hi, alex,

please have a look on document "99C-ESP8266-OTA_UPGRADE" here http://bbs.espressif.com/viewtopic.php?f=21&t=413

it seems that you compiled user2.bin in a wrong way.

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

Re: 自己的 ota upgrade server

Postby alexchang » Sun May 10, 2015 1:33 pm

試了許久,原廠的升級函數,在我這邊,當我處於 0x81000 user2 去升級 0x01000 user1 的時候,都會引起當機,而且重開後就無法正常開機了。

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

Re: 自己的 ota upgrade server

Postby alexchang » Sun May 10, 2015 2:03 pm

好像找原因了,不使用 boot 增強模式就都可以正常更新,只要進入增強模式, user2 升級 user1 就會當機(一開始下載就當了)。

測試情境是這樣的:
完全重寫 rom ,使用
boot_v1.3(b3).bin
blank.bin
esp_init_data_default.bin
user1.bin
這幾個檔案。
接著 ota 升級 user2,升級完用 增強模式開機進入 user2,隨後不重啟,馬上繼續 ota 升級 user1,然後就會看到當機的狀況(一開始下載就當了)。
Last edited by alexchang on Sun May 10, 2015 3:12 pm, edited 1 time in total.

Who is online

Users browsing this forum: No registered users and 60 guests