Chat freely about anything...

User avatar
By ghh
#49826 I just got my ESP8622-01 Module and have connected it via a microcontroller to my PC.
I can talk to it and all works ok so far. However, I'd like to update the firmware as the one that is installed does not have the features decribed in the AT description.

Here is what I do:

AT+RESTORE
.....
invalid

AT+CWMODE_DEF=3
OK

AT+CWDHCP_DEF=1,1
OK

AT+CWJAP_DEF= [ssid], [pwd]
WIFI CONNECTED
WIFI GOT IP
OK

AT+GMR
AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
OK

AT+CIUPDATE
+CIPUPDATE:1
+CIPUPDATE:2
+CIPUPDATE:3
+CIPUPDATE:4

ERROR

Any idea what is wrong?
Thanks for any hint.

PS. The update with esptool.py failed as well, after booting with GPIO0 pulled down I cannot connect to the device, the pytton tool says

Connecting...

A fatal error occurred: Failed to connect to ESP8266


Gerhard
User avatar
By ghh
#49853 Update:

Now I managed to flash with esptool.py, according to the memory map in the "AT Instruction Set manual"

./esptool2.py --port /dev/ttyACM0 --baud 115200 write_flash 0xfc000 ../ESP8266_NONOS_SDK/bin/esp_init_data_default.bin
./esptool2.py --port /dev/ttyACM0 --baud 115200 write_flash 0x7e000 ../ESP8266_NONOS_SDK/bin/blank.bin
./esptool2.py --port /dev/ttyACM0 --baud 115200 write_flash 0xfe000 ../ESP8266_NONOS_SDK/bin/blank.bin
./esptool2.py --port /dev/ttyACM0 --baud 115200 write_flash 0x00000 ../ESP8266_NONOS_SDK/bin/boot_v1.5.bin
./esptool2.py --port /dev/ttyACM0 --baud 115200 write_flash 0x01000 ../ESP8266_NONOS_SDK/bin/at/512+512/user1.1024.new.2.bin

However, after letting GPIO0 float again and reset, I only get the following (at 74880 baud):

2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 4Mbit(256KB+256KB)
enhance boot mode, jump to run bin @ 0

@ 0

and no further reaction.

Is the the correct boot.bin? The manual says to use
"boot.bin In \bin\at",
but in the latest SDK version I just downloaded there is no such file, only

bin/boot_v1.2.bin
bin/boot_v1.5.bin

Which boot.bin should I use?
User avatar
By ghh
#49887 Another update

I now programmed my µC to easily switch between 74880 and 115200 baud so I can track more easily what happens. I tried also ESP8266_NONOS_SDK/bin/boot_v1.2.bin, the rest as above and get the following messages after reset (with GPIO0 floating):

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 816, room 16

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf

2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run usererror user bin flag, flag = 6
user code done


Any idea what could be wrong here?