【Feedback】NONOS 1.5.4 OTA problem
【Feedback】NONOS 1.5.4 OTA problem
Postby lou0908 » Wed Jul 06, 2016 5:03 pm
Now I use NONOS 1.5.4 and the test demo is plug, now the application can communicate with iot.espressif.com successfully, the could platform can control my application via the internet without any trouble. so I want to test OTA feature. I follow the step in the document with name of 99c-esp8266_ota_upgrade_en_v1.6.pdf.
I have changed PRIV_PARAM_START_SEC and ESP_PARAM_START_SEC to 0x7c and 0x7D SDK before compiling SDK for I want to use 512K+512K configuration in our 4096K spi flash.
I have compiled SDK and got two bins with name of user1.bin and user2.bin, some step such as follows:
DESKTOP-A1K3GVA /cygdrive/e/wifi/esp8266/sdk/ESP8266_NONOS_SDK_V1.5.4_16_05_20/ESP8266_NONOS_SDK/app
$ ./gen_misc.sh
gen_misc.sh version 20150511
Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
1
boot mode: new
STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
2
generate bin: user2.bin
STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):
2
spi speed: 40 MHz
STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):
0
spi mode: QIO
STEP 5: choose spi size and map
0= 512KB( 256KB+ 256KB)
2=1024KB( 512KB+ 512KB)
3=2048KB( 512KB+ 512KB)
4=4096KB( 512KB+ 512KB)
5=2048KB(1024KB+1024KB)
6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):
4
spi size: 4096KB
spi ota map: 512KB + 512KB
Then I burn this bins list in folder bin and upgrade to flash via flash download tool 3.3.4, and the offset address which bin to burn in I refer the document 2a-esp8266-sdk_getting_started_guide_en.pdf. In my test board I only burn user1.bin.
the screen capture of the flash download tool is showed as follow:
When I burn the firmware to flash, the device can connect specific AP and connect to Internet so it can exchange information with iot.epressif.com. I update user1.bin and user2.bin to site mentioned previous and set the Version to v1.0.6t23701(a) in the site while my local application version is v1.0.5t23701(a). so I hope local application can upgrade itself to version v1.0.6t23701(a). unfortunately, the experiment is failed, and the result I got by the ESP8266EX printed to uart is show as follow
I have changed PRIV_PARAM_START_SEC and ESP_PARAM_START_SEC to 0x7c and 0x7D SDK before compiling SDK for I want to use 512K+512K configuration in our 4096K spi flash.
I have compiled SDK and got two bins with name of user1.bin and user2.bin, some step such as follows:
DESKTOP-A1K3GVA /cygdrive/e/wifi/esp8266/sdk/ESP8266_NONOS_SDK_V1.5.4_16_05_20/ESP8266_NONOS_SDK/app
$ ./gen_misc.sh
gen_misc.sh version 20150511
Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
1
boot mode: new
STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
2
generate bin: user2.bin
STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):
2
spi speed: 40 MHz
STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):
0
spi mode: QIO
STEP 5: choose spi size and map
0= 512KB( 256KB+ 256KB)
2=1024KB( 512KB+ 512KB)
3=2048KB( 512KB+ 512KB)
4=4096KB( 512KB+ 512KB)
5=2048KB(1024KB+1024KB)
6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):
4
spi size: 4096KB
spi ota map: 512KB + 512KB
Then I burn this bins list in folder bin and upgrade to flash via flash download tool 3.3.4, and the offset address which bin to burn in I refer the document 2a-esp8266-sdk_getting_started_guide_en.pdf. In my test board I only burn user1.bin.
the screen capture of the flash download tool is showed as follow:
When I burn the firmware to flash, the device can connect specific AP and connect to Internet so it can exchange information with iot.epressif.com. I update user1.bin and user2.bin to site mentioned previous and set the Version to v1.0.6t23701(a) in the site while my local application version is v1.0.5t23701(a). so I hope local application can upgrade itself to version v1.0.6t23701(a). unfortunately, the experiment is failed, and the result I got by the ESP8266EX printed to uart is show as follow
Re: 【Feedback】Re: NONOS 1.5.4 OTA problem
Postby lou0908 » Thu Jul 07, 2016 6:37 pm
esp_rubin wrote:i tried my 8266 device, never reproduce the issue, so could you share me your IotBucket account, let me check it, thank you!!
Thank you for your help, my account is lou0908,and the password is as same as the account name, I am looking forward to your good news. thank you
Re: 【Feedback】NONOS 1.5.4 OTA problem
Postby lou0908 » Thu Jul 07, 2016 8:48 pm
esp_rubin wrote:account should be mail address to login the IotBucket
I am so sorry, account is lou0908@126.com,thank you
Re: 【Feedback】NONOS 1.5.4 OTA problem
Postby lou0908 » Fri Jul 08, 2016 10:08 am
esp_rubin wrote:login failed, i used:
mail:lou0908@126.com
password:lou0908
please confirm, thank you!!
I am very sorry to bring you some unnecessary trouble, I have change my password to 123456, and I have confirmed this account can login in that site,
mail:lou0908@126.com
password:123456
thank you
My application compiler result bins listed follow
- Attachments
-
- upgrade.rar
- (337.58 KiB) Downloaded 348 times
Re: 【Feedback】NONOS 1.5.4 OTA problem
Postby ESP_Rubin » Fri Jul 08, 2016 10:47 am
please change:
1) user1.4096.new.4.bin to user1.bin; user2.4096.new.4.bin to user2.bin
2) please make use the flash map be the same. Form you use, you want update the map 6 to map 4, that's we can't suuport now
1) user1.4096.new.4.bin to user1.bin; user2.4096.new.4.bin to user2.bin
2) please make use the flash map be the same. Form you use, you want update the map 6 to map 4, that's we can't suuport now
Re: 【Feedback】NONOS 1.5.4 OTA problem
Postby lou0908 » Fri Jul 08, 2016 11:19 am
esp_rubin wrote:please change:
1) user1.4096.new.4.bin to user1.bin; user2.4096.new.4.bin to user2.bin
2) please make use the flash map be the same. Form you use, you want update the map 6 to map 4, that's we can't suuport now
thank you esp_rubin, I have solved this problem successfully under the guidance of you.
PS:
Now I using NONOS SDK as base of my application. I am familiar with widows platform application development, and I use the IDE2.0 which provided by espressif as my development tool to develop esp8266 application. I found that IDE compiled NONOS demo works prefect, while compiler RTOS 1.4.x version is a nightmare. I using the rtos version included in the project folder which included in IDE folder, I found it do not work fine as NONOS version, IDE console can not print the detailed compiler process log in IDE console, is it right? If I want to compiler RTOS version, Can I chose IDE on windows platform as my primary tool?
Who is online
Users browsing this forum: No registered users and 330 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.