Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By ABMT
#88036 Hello.
For the past two days I am trying to flash the latest AT firmware to my ESP-01S module, but with no luck. The only version that successfully works is v.0.9.5.0 flashed with "XTCOM_UTIL.exe", this is the console at 74880 bauds during boot:
Code: Select all ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 612, room 16
tail 4
chksum 0x12
load 0x3ffe8000, len 788, room 4
tail 0
chksum 0x50
load 0x3ffe8314, len 264, room 8
tail 0
chksum 0x4a
csum 0x4a

2nd boot version : 1.1
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size : 4Mbit
jump to run user1

After that it successfully responds to AT commands at 9600 bauds. I know that v.0.9.5.0 has some bugs and I encountered one of them in my project, that's why I need a newer version.
I downloaded the "ESP8266 IDF AT Bin V2.0" from here and flashed it with the command from download.config using esptool.py:
Code: Select allC:\Users\user\.windows-build-tools\python27\Scripts>esptool.exe --port COM2 write_flash --flash_mode dio --flash_freq 40m --flash_size 1MB 0x9000 ota_data_initial.bin 0x0000 bootloader/bootloader.bin 0xBF000 at_customize.bin 0xC0000 customized_partitions/factory_param.bin 0xC1000 customized_partitions/server_cert.bin 0xC3000 customized_partitions/server_key.bin 0xC5000 customized_partitions/server_ca.bin 0xC7000 customized_partitions/client_cert.bin 0xC9000 customized_partitions/client_key.bin 0xCB000 customized_partitions/client_ca.bin 0x10000 esp-at.bin 0x8000 partitions_at.bin
esptool.py v2.8
Serial port COM2
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 48:3f:da:66:a3:0b
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 8192 bytes to 31...
Wrote 8192 bytes (31 compressed) at 0x00009000 in 0.0 seconds (effective 4096.0 kbit/s)...
Hash of data verified.
Flash params set to 0x0220
Compressed 10928 bytes to 7237...
Wrote 10928 bytes (7237 compressed) at 0x00000000 in 0.7 seconds (effective 133.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 184...
Wrote 3072 bytes (184 compressed) at 0x000bf000 in 0.0 seconds (effective 744.7 kbit/s)...
Hash of data verified.
Compressed 4096 bytes to 45...
Wrote 4096 bytes (45 compressed) at 0x000c0000 in 0.0 seconds (effective 2048.0 kbit/s)...
Hash of data verified.
Compressed 1176 bytes to 904...
Wrote 1176 bytes (904 compressed) at 0x000c1000 in 0.1 seconds (effective 99.0 kbit/s)...
Hash of data verified.
Compressed 1688 bytes to 1320...
Wrote 1688 bytes (1320 compressed) at 0x000c3000 in 0.1 seconds (effective 104.7 kbit/s)...
Hash of data verified.
Compressed 1176 bytes to 906...
Wrote 1176 bytes (906 compressed) at 0x000c5000 in 0.1 seconds (effective 98.0 kbit/s)...
Hash of data verified.
Compressed 2344 bytes to 1487...
Wrote 2344 bytes (1487 compressed) at 0x000c7000 in 0.1 seconds (effective 130.2 kbit/s)...
Hash of data verified.
Compressed 3368 bytes to 2527...
Wrote 3368 bytes (2527 compressed) at 0x000c9000 in 0.2 seconds (effective 112.3 kbit/s)...
Hash of data verified.
Compressed 2344 bytes to 1499...
Wrote 2344 bytes (1499 compressed) at 0x000cb000 in 0.1 seconds (effective 130.2 kbit/s)...
Hash of data verified.
Compressed 660288 bytes to 424136...
Wrote 660288 bytes (424136 compressed) at 0x00010000 in 37.7 seconds (effective 139.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.0 seconds (effective 768.0 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

It seems to flash with no problems, but after restart I think it's not booting correctly, it doesn't respond to any AT commands at any baud rate:
Code: Select all ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 7332, room 16
tail 4
chksum 0x14
load 0x3ffe8408, len 24, room 4
tail 4
chksum 0x9d
load 0x3ffe8420, len 3532, room 4
tail 8
chksum 0x69
csum 0x69

The same thing happens with the latest beta firmware from Espressif GitHub flashed using the flash_download_tool_3.8.5.

How can I get the latest stable firmware to work and respond to AT commands?