The command AT+CWMODE_DEF not stores correctly in Flash
The command AT+CWMODE_DEF not stores correctly in Flash
Postby marcoleo » Tue May 26, 2015 8:52 pm
The command AT + CWMODE_DEF not stores correctly in Flash.
Turning off and on the module, setting is lost (after 2 times?)
I suppose that the problem also involves other commands
================
Power ON
================
AT+RST
OK
ets Jan 8 2013,rst cause:1, boot mode:(3,0)
load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0
2nd boot version : 1.4(b1)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
r??9l
.
.
.
l`?
ready
================
AT+GMR ;Version
AT version:0.24.0.0(May 22 2015 19:20:14)
SDK version:1.1.0
compile time:May 22 2015 20:56:34
OK
================
AT+CWMODE? ;Reading+CWMODE:2
OK
================
AT+CWMODE_DEF=3 ;Setting AP+Sta OK
================
AT+CWMODE? ;Verify ok!+CWMODE:3
OK
***************************************************************************************************************
Cycle Power OFF/ON
***************************************************************************************************************
?r?<?????b???~?n???r??#?n??;nr???;???l`nn?????r?????pp??<????b???~?n???r??#?n??
rnr???;???;?r???n???r??l`$`?|?????#l`$`?r??9l???b????bp?b???n??1?n???? ???r?n?
?????b?l??b?>??????b??br?`$`?n??????r?#?n?b??b??l`?
ready
================
AT+GMR ;Version
AT version:0.24.0.0(May 22 2015 19:20:14)
SDK version:1.1.0
compile time:May 22 2015 20:56:34
OK
================
AT+CWMODE? ;Verify ok!
+CWMODE:3
OK
***************************************************************************************************************
Cycle Power OFF/ON
***************************************************************************************************************
r?<?????b??>~?n???r??#?n??;nr???;???l`nn?????r?????pp??<????b???~?n???r??#?n??
rnr???;????;?r???n??r??l`$`??|?????#l`?n?br???#??l??#?$?`?lr?<?????b??>~?n???r??
#?n??;nr???;??l`nn?????r?????pp??<????b???~?n???r??#?n??rnr???;????;?r???n???r??
l`$`??|??? ?#l`??n?br???#??l??#?$?`?l??;???rrr??9l???b????bp?b??n????n???? ???r?
n??????b?l??b????????b??br?`$`?n??????r?#?n?b??b??l`?
ready
================
AT+GMR
AT version:0.24.0.0(May 22 2015 19:20:14)
SDK version:1.1.0
compile time:May 22 2015 20:56:34
OK
================
AT+CWMODE?
+CWMODE:2 <<<<=============================================================== ;VERIFY BAD!!!!
OK
================
It seems a problem of flash
I loaded my flash (25Q40 = 512K) as follows:
SPI Flash Config
Crystal Freq: 26M
SPI Speed 40Mhz
SPI Mode QIO
8Mbit Flash SIZE
SpiAutoSet -
boot_v1.4(b1).bin;0x0000;
user1.1024.new.2.bin;0x1000;
user2.1024.new.2.bin;0x41000;
blank.bin;0x7E000;
My flash address is correct?
Thanks in advance!
Turning off and on the module, setting is lost (after 2 times?)
I suppose that the problem also involves other commands
================
Power ON
================
AT+RST
OK
ets Jan 8 2013,rst cause:1, boot mode:(3,0)
load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0
2nd boot version : 1.4(b1)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
r??9l
.
.
.
l`?
ready
================
AT+GMR ;Version
AT version:0.24.0.0(May 22 2015 19:20:14)
SDK version:1.1.0
compile time:May 22 2015 20:56:34
OK
================
AT+CWMODE? ;Reading+CWMODE:2
OK
================
AT+CWMODE_DEF=3 ;Setting AP+Sta OK
================
AT+CWMODE? ;Verify ok!+CWMODE:3
OK
***************************************************************************************************************
Cycle Power OFF/ON
***************************************************************************************************************
?r?<?????b???~?n???r??#?n??;nr???;???l`nn?????r?????pp??<????b???~?n???r??#?n??
rnr???;???;?r???n???r??l`$`?|?????#l`$`?r??9l???b????bp?b???n??1?n???? ???r?n?
?????b?l??b?>??????b??br?`$`?n??????r?#?n?b??b??l`?
ready
================
AT+GMR ;Version
AT version:0.24.0.0(May 22 2015 19:20:14)
SDK version:1.1.0
compile time:May 22 2015 20:56:34
OK
================
AT+CWMODE? ;Verify ok!
+CWMODE:3
OK
***************************************************************************************************************
Cycle Power OFF/ON
***************************************************************************************************************
r?<?????b??>~?n???r??#?n??;nr???;???l`nn?????r?????pp??<????b???~?n???r??#?n??
rnr???;????;?r???n??r??l`$`??|?????#l`?n?br???#??l??#?$?`?lr?<?????b??>~?n???r??
#?n??;nr???;??l`nn?????r?????pp??<????b???~?n???r??#?n??rnr???;????;?r???n???r??
l`$`??|??? ?#l`??n?br???#??l??#?$?`?l??;???rrr??9l???b????bp?b??n????n???? ???r?
n??????b?l??b????????b??br?`$`?n??????r?#?n?b??b??l`?
ready
================
AT+GMR
AT version:0.24.0.0(May 22 2015 19:20:14)
SDK version:1.1.0
compile time:May 22 2015 20:56:34
OK
================
AT+CWMODE?
+CWMODE:2 <<<<=============================================================== ;VERIFY BAD!!!!
OK
================
It seems a problem of flash
I loaded my flash (25Q40 = 512K) as follows:
SPI Flash Config
Crystal Freq: 26M
SPI Speed 40Mhz
SPI Mode QIO
8Mbit Flash SIZE
SpiAutoSet -
boot_v1.4(b1).bin;0x0000;
user1.1024.new.2.bin;0x1000;
user2.1024.new.2.bin;0x41000;
blank.bin;0x7E000;
My flash address is correct?
Thanks in advance!
Re: The command AT+CWMODE_DEF not stores correctly in Flash
Postby ESP_Faye » Wed May 27, 2015 10:37 am
Hi,
Download and unzip the SDK_v1.1.0 http://bbs.espressif.com/viewtopic.php?f=5&t=481
You could find "4A-ESP8266__AT Instruction Set" in folder "document", "1. Preambles" shows the downloading address.
Choosing 1024KB flash:
boot_v1.4(b1).bin;0x0000;
user1.1024.new.2.bin;0x1000;
blank.bin;0x7E000 and 0xFE000
Thanks for your interest in ESP8266 !
Download and unzip the SDK_v1.1.0 http://bbs.espressif.com/viewtopic.php?f=5&t=481
You could find "4A-ESP8266__AT Instruction Set" in folder "document", "1. Preambles" shows the downloading address.
Choosing 1024KB flash:
boot_v1.4(b1).bin;0x0000;
user1.1024.new.2.bin;0x1000;
blank.bin;0x7E000 and 0xFE000
Thanks for your interest in ESP8266 !
Re: The command AT+CWMODE_DEF not stores correctly in Flash
Postby marcoleo » Wed May 27, 2015 2:11 pm
Programmed 25Q40 (512KB)
Choosing 1024KB flash:
boot_v1.4 (b1) .bin; 0x0000;
user1.1024.new.2.bin; 0x1000;
blank.bin; 0x7E000 and 0xFE000 <== ok
The problem persists.
After the first cycle power OFF/ON CWMODE = 3 (OK)
After the second cycle power OFF/ON CWMODE = 2 (BAD !!)
Choosing 1024KB flash:
boot_v1.4 (b1) .bin; 0x0000;
user1.1024.new.2.bin; 0x1000;
blank.bin; 0x7E000 and 0xFE000 <== ok
The problem persists.
After the first cycle power OFF/ON CWMODE = 3 (OK)
After the second cycle power OFF/ON CWMODE = 2 (BAD !!)
Re: The command AT+CWMODE_DEF not stores correctly in Flash
Postby ESP_Faye » Thu May 28, 2015 10:14 am
Hi,
Sorry that I didn't make myself clear.
AT_v0.22(based on SDK_v1.0.0)and version before, need to programm as 512KB flash,download as 512KB flash
AT_v0.23(based on SDK_v1.0.1)and later version,need to use actually 1024KB flash,programming as 1024KB flash,downloading as 1024KB flash
If your flash is 512KB, here is a method to use latest AT firmware http://bbs.espressif.com/viewtopic.php?f=16&t=400&start=10#p1599
So sorry for the inconvenience.
Sorry that I didn't make myself clear.
AT_v0.22(based on SDK_v1.0.0)and version before, need to programm as 512KB flash,download as 512KB flash
AT_v0.23(based on SDK_v1.0.1)and later version,need to use actually 1024KB flash,programming as 1024KB flash,downloading as 1024KB flash
If your flash is 512KB, here is a method to use latest AT firmware http://bbs.espressif.com/viewtopic.php?f=16&t=400&start=10#p1599
So sorry for the inconvenience.
Re: The command AT+CWMODE_DEF not stores correctly in Flash
Postby marcoleo » Thu May 28, 2015 2:51 pm
Thanks,
but i think espressif should release any version of precompiled firmware so users with esp modules with 512k flash can still use latest firmware.
but i think espressif should release any version of precompiled firmware so users with esp modules with 512k flash can still use latest firmware.

Who is online
Users browsing this forum: No registered users 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.