-->
Page 1 of 3

Help needed: flashing default firmware

PostPosted: Fri Dec 31, 2021 2:34 pm
by ChrisO
Hi

I'm using ESP8266-01 and Linux.
AT+GMR
AT version:1.2.0.0(Jul 1 2016 20:04:45)
SDK version:1.5.4.1(39cb9a32)
v1.0.0
Mar 11 2018 18:27:31

After some experimenting with it using Arduino's IDE, wanted to revert my board to its default state i.e. original firmaware.
I downloaded latest recommended ESP8266-IDF-AT_V2.2.1.0 and started with a long and unsuccessful "trial and error" process. I mean I was able to successfully install the firmware but was not able to get any answer to AT commands afterwards. Yes, I did a reset/power-toggle and removed GND from GPIO0.

Did this:

esptool.py write_flash 0x10000 ESP8266-AT-V2.2.1.0/esp-at.bin
esptool.py v3.3-dev
Found 2 serial ports
Serial port /dev/ttyUSB0
Connecting...
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:1f:97:a0
Stub is already running. No upload is necessary.
Configuring flash size...
Flash will be erased from 0x00010000 to 0x000defff...
Compressed 844288 bytes to 529252...
Wrote 844288 bytes (529252 compressed) at 0x00010000 in 48.7 seconds (effective 138.6 kbit/s)...
Hash of data verified.

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

Any help would be really appreciated.
ChrisO

Re: Help needed: flashing default firmware

PostPosted: Sat Jan 01, 2022 7:55 pm
by QuickFix
I stopped using the AT firmware of the ESP8266 a long time ago, so this is from memory.

For ESP-01 boards, you need to take an older version of the firmware, since the newer ones don't fit into the limited memory of the 01 boards; it will only work on the ESP-12 (and similar) based models. :idea:

Re: Help needed: flashing default firmware

PostPosted: Sun Jan 02, 2022 1:53 am
by JurajA
AT 1.7.5 (SDK 3.0.5) has a 512 kB version (requires a 1 MB flash). esp-01S have 1 MB flash a.f.a.i.k.

AT 2 1MB version is not published. I have a build. but AT 1.7.5 is a better option.

https://github.com/espressif/ESP8266_NONOS_SDK/releases

Re: Help needed: flashing default firmware

PostPosted: Mon Jan 03, 2022 1:21 pm
by ChrisO
Thank you for the pointer.
I think I found it and from the very sparse Howto, I deduced the following:

esptool.py write_flash 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

Download OK, but after power-cycle ESP8266 runs amok, the LED is blinking very quickly and the console is flooded with garbage.
What am I doing wrong?
Thank you.