first of all, I want to say that this was my first approach to ESP wifi modules.
I was programing this module using the AT commands and everything was perfect until I changed the baud rate of my module using AT+UART=9600,8,1,0,0
fromhttps://bbs.espressif.com/viewtopic.php?t=6109
. From there, I started searching for the reason why it was going wrong. Then, I thought that maybe the firmware got corrupted. Then, I found a tutorial to flash the firmware https://www.instructables.com/id/ESP-12F-Flashing-AT-Firmware/
. I followed, and at first view, everything was okay. But then I saw that not all the commands were working good, so I went to the documentation of what I had installed to the module and I found this (its the fragment I used)
. Read me note(this is not in the tutorial but in the folder):
BOOT MODE
download: //I tried both versions
Flash size 32Mbit: 512KB+512KB
boot_v1.2+.bin 0x00000
user1.1024.new.2.bin 0x01000
esp_init_data_default.bin 0x3fc000 (optional)
blank.bin 0x7e000 & 0x3fe000
Flash size 32Mbit-C1: 1024KB+1024KB
boot_v1.2+.bin 0x00000
user1.2048.new.5.bin 0x01000
esp_init_data_default.bin 0x3fc000 (optional)
blank.bin 0xfe000 & 0x3fe000
.
Update steps
1.Make sure TE(terminal equipment) is in sta or sta+ap mode ex.
AT+CWMODE=3
OK
2.Make sure TE got ip address ex.
AT+CWJAP="ssid","12345678"
OK
AT+CIFSR
192.168.1.134
- Let's update ex.
AT+CIUPDATE
+CIPUPDATE:1 //found server
+CIPUPDATE:2 //connect server
+CIPUPDATE:3 //got edition
+CIPUPDATE:4 //start start
OK
note. If there are mistakes in the updating, then break update and print ERROR. .
. END OF THE README NOTE .
What I put and what I received
AT+CWMODE=3
OK
.
AT+CWJAP="SSID","PASSWORD"
strange characters
I tried different times, and I got different answers such as WIFI DISCONNECTED
, OK
or WIFI CONNECTED GOT IP
(Maybe its because the responses with 512KB+512KB and 1024KB+1024KB are different, I don't think so, but I don't know).
.
AT+CIFSR
APIP,"192.168.4.1"
+CIFSR:APMAC,"f6:cf:a2:d1:3e:38
.
AT+CIUPDATE
With this last command, it happened to me three different things
Case 1
+CIPUPDATE:1
+CIPUPDATE:2
+CIPUPDATE:3
+CIPUPDATE:3
+CIPUPDATE:4 //only sometimes
ERROR //Sometimes after +CIPUPDATE:1, +CIPUPDATE:2, +CIPUPDATE:3 OR +CIPUPDATE:4
Case 2 It does nothing or it sends +CIPUPDATE:n but with garbage characters
Case 3
After sending AT+CIUPDATE
it sometimes sends
`
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
foad |:000800, vY⸮b⸮⸮⸮⸮⸮⸮⸮j tXM⸮j ,k⸮յ⸮⸮⸮⸮"5 load 0x3ffe8000, len ⸮b⸮⸮⸮⸮⸮⸮j tX]⸮⸮i ,kkյ⸮⸮⸮5 ho 0 talm 18 ta4 2 1I H a
2correct flash map Fatal exception (28):`
I send fatal error(28). I have looked for it https://www.espressif.com/sites/default/files/documentation/esp8266_reset_causes_and_common_fatal_exception_causes_en.pdf
, but I don't know what I should do (Because I didn't use the user1.1024.new.2.bin
that time)
I had spent more than 2 weeks with this, and I have 3 modules blocked like that, so it will be amazing if someone can help me.
Thanks
Miquel