ESP8266 2MB + OTA
-
- Posts: 7
- Joined: Mon Jan 15, 2018 6:34 pm
ESP8266 2MB + OTA
Postby JulienInnovel » Tue Feb 06, 2018 1:01 am
I'm using an ESP-WROOM-02 (ESP8266 + 2MB of SPI flash).
I'm trying to do OTA tests with mode 512KB + 512KB, to have 1024KB of user data (I have some data do store into flash and I don't want to erase them with OTA, user data stored at @ 0x100000).
I build my first firmware (V1) with linker script "eagle.app.v6.new.2048.ld", option "16m" (not "16m-c1").
I flash my ESP with ESP FLASH TOOL with this parameters :
SPI speed : 40MHz
SPI mode : QIO
Flash size : 16m
and files :
boot_v1.7.bin @0x00000
user1.bin @0x01000
blank.bin @0x1fb000
esp_init_data_default.bin @0x1fc000
blank.bin @0x1fe000
My ESP start correctly (USART prompt ) :
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x40100000, len 2592, room 16
tail 0
chksum 0xf3
load 0x3ffe8000, len 764, room 8
tail 4
chksum 0x92
load 0x3ffe82fc, len 676, room 4
tail 0
chksum 0x22
csum 0x22
2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 16Mbit(512KB+512KB)
jump to run user1 @ 1000
rf cal sector: 507
freq trace enable 0
rf[112] : 00
rf[113] : 00
rf[114] : 01
w_flash
SDK ver: 2.1.0(116b762) compiled @ May 5 2017 16:08:55
phy ver: 1134_0, pp ver: 10.2
Now, I want to upgrade my ESP by OTA to firmware version 2 (same as version 1 but only version number has changed) :
It's working perfectly, reboot and prompt this :
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 2592, room 16
tail 0
chksum 0xf3
load 0x3ffe8000, len 764, room 8
tail 4
chksum 0x92
load 0x3ffe82fc, len 676, room 4
tail 0
chksum 0x22
csum 0x22
2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 16Mbit(512KB+512KB)
jump to run user2 @ 81000
rf cal sector: 507
freq trace enable 0
rf[112] : 00
rf[113] : 00
rf[114] : 01
SDK ver: 2.1.0(116b762) compiled @ May 5 2017 16:08:55
phy ver: 1134_0, pp ver: 10.2
Now, I want to upgrade to the firmware version 3 (same has others, but only version number changed to 3) :
GET /user1.bin HTTP/1.0
Connection: close
actual bin : UPGRADE_FW_BIN2
system_upgrade_start
upgrade_connect 45736
[OTA]Upgrading...
upgrade_connect_cb
pusrdata = HTTP/1.0 200 OK
Content-Type: application/octet-stream
Content-Length: 234820
sumlength = 234820
sec_block 58
..........................................................upgrade_get_sum_disconcb 45544
And nothing else.... Reboot it self and only print this :
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x40100000, len 2592, room 16
tail 0
chksum 0xf3
load 0x3ffe8000, len 764, room 8
tail 4
chksum 0x92
load 0x3ffe82fc, len 676, room 4
tail 0
chksum 0x22
csum 0x22
2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 16Mbit(512KB+512KB)
jump to run user2 @ 81000
And my ESP is broken...
I must erase all, and flash it again.
It seems like the firmware 2 is erasing itself or something else..
Any one have any idea ?
Thanks
-
- Posts: 166
- Joined: Sat Apr 01, 2017 1:21 am
- Contact:
Re: ESP8266 2MB + OTA
Postby AgentSmithers » Wed Feb 07, 2018 2:36 am
-
- Posts: 7
- Joined: Mon Jan 15, 2018 6:34 pm
Re: ESP8266 2MB + OTA
Postby JulienInnovel » Wed Feb 07, 2018 8:56 pm
You can add me, my skype is j.reynaud_7
-
- Posts: 7
- Joined: Mon Jan 15, 2018 6:34 pm
Re: ESP8266 2MB + OTA
Postby JulienInnovel » Thu Feb 08, 2018 5:28 pm
I have the bootloader for 16Mbit (512 + 512) and I can use OTA to flash firmware and automatically jump to user 1 or user 2, and have a user data flash at the end (from @0x100000 to @0x1FC000).
But, why I must use the 1MB linker ?
The linker for 2MB can't do 512+512 ?
Re: ESP8266 2MB + OTA
Postby Her Mary » Mon Feb 12, 2018 5:27 pm
And you should note that the system parameter area is always the last 4 or 5 sectors of your flash (16Mbit), you should not save any user data there.
-
- Posts: 7
- Joined: Mon Jan 15, 2018 6:34 pm
Re: ESP8266 2MB + OTA
Postby JulienInnovel » Mon Feb 12, 2018 6:55 pm
Yes, I select the 16Mbit flash when I download the firmware.
My user data selection is from @0x100000 to @0x1FC000 (like defined in the IOT SDK USER MANUAL).
-
- Posts: 166
- Joined: Sat Apr 01, 2017 1:21 am
- Contact:
Re: ESP8266 2MB + OTA
Postby AgentSmithers » Sun Feb 18, 2018 2:03 pm
JulienInnovel wrote:Hi, thanks.
You can add me, my skype is j.reynaud_7
I added you but havent been accepted yet.
Who is online
Users browsing this forum: Bryantpoirm, HenryCot, Henryionic and 5 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.