AZ-Delivery ESP8266X ESP-01S WLAN Module WiFi … on macOS
03 December 2023
Refs
Tools
brew install esptool
stable 4.6.2
Get code from GitHub at ESP8266_NONOS_SDK
Backup original firmware
$ esptool.py -p /dev/tty.usbserial-10 read_flash 0x00000 0xFFFFF AZ-original-image.bin
Flash new firmware
Get proper information from ESP8266_NONOS_SDK/bin/at/README.md
8 │ # BOOT MODE
9 │ ## download
10 │
11 │ ### Flash size 8Mbit: 512KB+512KB
12 │ boot_v1.2+.bin 0x00000
13 │ user1.1024.new.2.bin 0x01000
14 │ esp_init_data_default.bin 0xfc000
15 │ blank.bin 0x7e000 & 0xfe000
WARNING Without --flash_size detect
the device fails to boot
$ cd ESP8266_NONOS_SDK/bin
$ esptool.py -b 115200 -p /dev/tty.usbserial-10 write_flash --flash_size detect 0x00000 boot_v1.2.bin 0x01000 at/512+512/user1.1024.new.2.bin 0xfc000 esp_init_data_default_v08.bin 0x7e000 blank.bin 0xfe000 blank.bin
Connect on serial line
When using minicom
to send commands, type Return
and then Ctrl-J
.
You can use picocom --omap crcrlf
instead.
$ minicom -D <serial device>
AT
OK
AT+GMR
AT version:1.7.5.0(Oct 9 2021 09:26:04)
SDK version:3.0.5(b29dcd3)
compile time:Oct 15 2021 18:05:30
Bin version(Wroom 02):1.7.5
OK
AT+CWMODE_CUR=1
OK
AT+CWLAP
+CWLAP:(3,"mywifi",-54,"dc:a4:ca:ee:a3:10",1,-49,0,4,4,7,0)
OK
AT+CWDHCP=1,1
OK
AT+CWJAP_CUR="mywifi","mypass"
WIFI CONNECTED
WIFI GOT IP
OK
AT+CIFSR
+CIFSR:STAIP,"192.168.1.9"
+CIFSR:STAMAC,"08:f9:e0:xx:xx:xx"
OK
AT+CWQAP
OK
WIFI DISCONNECT