logo elektroda
logo elektroda
X
logo elektroda

ESP8266 does not respond to AT commands - how to get it working?

adamekamator 2493 11
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18093856
    adamekamator
    Level 17  
    Posts: 481
    Help: 7
    Rate: 64
    Board Language: polish
    Hello colleagues if not this section please move. The problem is this, I bought on the spur of the moment such a small WIFI ESP8266 gadget and no response to AT commands, help to get it working. It starts probably fine because on the terminal I have this data.

    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       : DIO
      SPI Flash Size : 32Mbit
    jump to run usererror user bin flag, flag = 8
    user code done
    .
    Attachments:
    • ESP8266 does not respond to AT commands - how to get it working? modul-wifi-esp-12e-esp8266-black-11-gpio-adc-pcb-antena.jpg (66.08 KB) You must be logged in to download this attachment.
  • ADVERTISEMENT
  • #2 18093959
    Anonymous
    Level 1  
  • #3 18093988
    adamekamator
    Level 17  
    Posts: 481
    Help: 7
    Rate: 64
    Board Language: polish
    Buddy I'm trying to flash the software but I'm doing something wrong because it's silent I've downloaded a couple of fierwals but no response I think I'm dividing the files wrong it only responds with ESP6288 v9.5.0. AT but whatever I send it returns <00><00> sometimes three or more. and this is when I upload with XTCOM_UTIL.

    Added after 6 [minutes]: .

    Unless I don't upload it all "ESP6288-IDFAT_V2.0 I still have versions 1.7 and1.6 I upload it NODEMCU FIRMWARE PROGRAMMER and flasch_download_tools_v3.6.6
  • ADVERTISEMENT
  • #4 18094010
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #5 18094017
    adamekamator
    Level 17  
    Posts: 481
    Help: 7
    Rate: 64
    Board Language: polish
    115200 baud the answer is that the sofy uploaded successfully and any response is there.
  • #6 18094018
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #7 18094020
    adamekamator
    Level 17  
    Posts: 481
    Help: 7
    Rate: 64
    Board Language: polish
    I have the softy from that site you gave me I'll look in notepad for the soft file how to play it at which address.

    Added after 8 [minutes]: .

    So I just have to upload the bin file from the factory folder to address0x00000? that's how it was supposed to be 115200
  • Helpful post
    #8 18094060
    Anonymous
    Level 1  
  • #9 18094113
    adamekamator
    Level 17  
    Posts: 481
    Help: 7
    Rate: 64
    Board Language: polish
    "ESP8266_AT_Bin_V1.7/ESP8266_AT_Bin_V1.7/bin/ " Mate in I don't see this batch and from this second path in 1024+1024 there are two files user 1 and user 2 both uploaded

    Added after 6 [minutes]:

    boot_v1.2 + .bin 0x00000
        user1.2048.new.5.bin 0x01000
        esp_init_data_default.bin 0x1fc000
        blank.bin 0xfe000 i 0x1fe000
    .
    This is how I will upload it and see if it runs I will upload NODEMCU

    Added after 5 [minutes]:

    And still in this NODEMC the settings are good
    BAUDRATE 11520
    Flash size 4MByte
    Flash speed 40MHz
    SPI Mode DIO

    Added after 20 [minutes]:

    Uploaded as you wrote in the 4th post and this is the effect;

    Spoiler:
    .
    ets Jan  8 2013,rst cause:2, boot mode:(3,6)
    
    
    
    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       : DIO
    
      SPI Flash Size : 32Mbit
    
    jump to run usererror user bin flag, flag = 8
    
    user code done
    
    <00>
    
     ets Jan  8 2013,rst cause:2, boot mode:(3,4)
    
    
    
    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       : DIO
    
      SPI Flash Size : 32Mbit
    
    jump to run user1
    
    
    
    mismatch map 5,spi_size_map 4
    
    system_partition_table_regist fail
    .

    Added after 10 [hours] 56 [minutes]: .

    Colleagues i found a video tutorial i uploaded according to it and ESP8266 after reset from pin reports redy after sending AT it sent back AT i.e. it did echo instead of responding ok Addresses in sequence
    0x00000
    0x01000
    0x7C000
    0x7E000
    What am I doing wrong?

    Added after 16 [minutes]:

    I checked on the Puty terminal and there the bushes I him AT->řđŢ hardware is probably ok since it responds to batches ?

    Added after 1 [hour] 25 [minutes]:

    Sorry Puty also works and so would have an echo on

    Added after 2 [hours] 13 [minutes]:

    I close the topic, however, a hardware error this little wonder I plugged in such a way that I soldered a goldpin to RX iTX IO0 plus and Vcc and ground I connected the female so z3cm to connect under 3.3V on his starter board as close as possible to the inverter 5V->3,3v .I used female-female cables about 30cm to connect USB->UART TTL 5V/3.3V and the IO0 pin, but after uploading the software I left it under the ESP, which means I created strange states on this pin for the processor, making communication impossible. I am writing about this because it is an unforgivable mistake with processors to leave such antennas on the pin, especially with inverters and switching power supplies. Now Eclipsa can be fired up and run on the AVR and test if it talks over WIFI .Thank you for your interest and time .

    Added after 40 [minutes]: .

    Good thing I didn't close the topic I still have a question on how to configure because after giving the name of my WIFI router found AT+CWJAP="name", "WIFI password" it gets
    +CWJAP:3
    FAIL
    ESP8266 set up
    +CIPMODE:0
    AT+CIPMUX=1
    Where is the error in the connection router about a metre from the ESP?
  • #10 18095022
    adamekamator
    Level 17  
    Posts: 481
    Help: 7
    Rate: 64
    Board Language: polish
    "ESP8266_AT_Bin_V1.7/ESP8266_AT_Bin_V1.7/bin/ " Mate in I don't see this batch and from this second path in 1024+1024 there are two files user 1 and user 2 both uploaded

    Added after 6 [minutes]:

    boot_v1.2 + .bin 0x00000
        user1.2048.new.5.bin 0x01000
        esp_init_data_default.bin 0x1fc000
        blank.bin 0xfe000 i 0x1fe000
    .
    So I'll upload it and see if it runs I'll upload NODEMCU

    Added after 5 [minutes]:

    And still in this NODEMC the settings are good
    BAUDRATE 11520
    Flash size 4MByte
    Flash speed 40MHz
    SPI Mode DIO

    Added after 20 [minutes]:

    Uploaded as you wrote in the 4th post and this is the effect;

    Spoiler:
    .
    ets Jan  8 2013,rst cause:2, boot mode:(3,6)
    
    
    
    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       : DIO
    
      SPI Flash Size : 32Mbit
    
    jump to run usererror user bin flag, flag = 8
    
    user code done
    
    <00>
    
     ets Jan  8 2013,rst cause:2, boot mode:(3,4)
    
    
    
    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       : DIO
    
      SPI Flash Size : 32Mbit
    
    jump to run user1
    
    
    
    mismatch map 5,spi_size_map 4
    
    system_partition_table_regist fail
    .

    Added after 10 [hours] 56 [minutes]: .

    Colleagues i found a video tutorial i uploaded according to it and ESP8266 after reset from pin reports redy after sending AT it sent back AT i.e. it did echo instead of responding ok Addresses in sequence
    0x00000
    0x01000
    0x7C000
    0x7E000
    What am I doing wrong?

    Added after 16 [minutes]:

    I checked on the Puty terminal and there the bushes I AT->řđŢ hardware is probably ok since it responds to batches ?

    Added after 1 [hour] 25 [minutes]:

    Sorry Puty also works and so would have an echo on

    Added after 2 [hours] 13 [minutes]:

    I close the topic, however, a hardware error this little miracle I plugged in such a way that I soldered a goldpin to RX iTX IO0 plus and Vcc and ground I connected female so z3cm to connect under 3.3V on his starter board as close as possible to the inverter 5V->3,3v .I used female-female cables about 30cm to connect USB->UART TTL 5V/3.3V and the IO0 pin, but after uploading the software I left it under the ESP, which means I caused the processor to have strange states on this pin, making communication impossible. I am writing about this because it is an unforgivable mistake with processors to leave such antennas on the pin, especially with inverters and switching power supplies. Now Eclipsa can be fired up and run on the AVR and test if it talks over WIFI .Thank you for your interest and time .

    Added after 40 [minutes]: .

    Good thing I didn't close the topic I still have a question on how to configure because after giving the name of my WIFI router found AT+CWJAP="name", "WIFI password" it gets
    +CWJAP:3
    FAIL
    ESP8266 set up
    +CIPMODE:0
    AT+CIPMUX=1
    Where is the error in connecting the router about a metre from the ESP?
  • #11 18098147
    Anonymous
    Level 1  
  • #12 18098578
    adamekamator
    Level 17  
    Posts: 481
    Help: 7
    Rate: 64
    Board Language: polish
    set to 1 module works (a hard reset helped, i.e. disconnected from power) connects to my router useful site. As for the problems with the UART connection, it was inaccurate knowledge of the USB/TTL adapter, which works on 3.3V and I fed it with 5V, it's a wonder I didn't break it after connecting directly ESP8266->USB/TTL after uploading the software everything works nicely.

Topic summary

✨ The discussion revolves around troubleshooting an ESP8266 module that does not respond to AT commands. The initial user reports successful booting but no response to commands. Responses suggest that the issue may stem from the absence of AT firmware, with recommendations to flash the correct firmware using tools like XTCOM_UTIL. Specific boot addresses for firmware files are provided, and users discuss settings such as baud rate (115200) and flash size (4MByte). A user eventually resolves the issue by ensuring the correct UART voltage (3.3V) and performing a hard reset, leading to successful communication with the router.
Generated by the language model.

FAQ

TL;DR: ESP8266 AT not responding? For 4MB flash modules, flash the correct AT bins; "There is a separate file with instructions on what files to upload and with what boot address." Then reset and check GPIO0 wiring. For hobbyists fixing silent ESP‑12/ESP8266 UART. [Elektroda, khoam, post #18094010]

Why it matters: You can quickly revive a "dead" ESP8266 and get AT commands working to join Wi‑Fi.

Quick facts:

Quick Facts

Why doesn’t my ESP8266 respond to AT commands?

It often lacks AT firmware from the factory, especially some ESP‑12E modules. Flash the official AT firmware and correct boot addresses. After flashing, reset and test over UART. Without AT firmware, AT commands do nothing. [Elektroda, khoam, post #18093959]

How do I flash the official AT firmware (ESP‑12, 4MB)?

Use the AT v1.7 package and these addresses: 0x00000 boot_v1.7.bin; 0x01000 user2.2048.new.5.bin; 0x3FC000 esp_init_data_default_v08.bin; 0xFE000 blank.bin; 0x3FE000 blank.bin.
  1. Open your flasher and load these bins.
  2. Assign the listed addresses for a 4MB module.
  3. Start flash, then reset and connect by serial. [Elektroda, khoam, post #18094010]

What does “mismatch map 5, spi_size_map 4” mean at boot?

It indicates your flashed image’s partition map does not match the module’s flash size. The partition table fails to register, so AT won’t start. Reflash using the correct 4MB layout and addresses from the AT package. [Elektroda, adamekamator, post #18094113]

What baud rate should I use with AT firmware?

Use 115200 bps unless the package states otherwise. Quote: “Rather 115200.” Configure your terminal accordingly, then send AT and expect OK. If output is garbled, recheck baud. [Elektroda, khoam, post #18094018]

Why do I see only echo (AT comes back) but no OK?

Local echo may be enabled, or module echo is on. Send ATE0 to disable module echo. Ensure your terminal sends CRLF line endings. Then issue AT again to get OK. [“ESP8266 AT Instruction Set”]

How should I wire GPIO0 during flashing and normal use?

Keep GPIO0 high for normal boot. Pull GPIO0 low only for flashing. Avoid leaving GPIO0 floating near switching regulators. In the thread, a floating IO0 blocked communication entirely. [Elektroda, adamekamator, post #18094113]

I see “user bin flag, flag = 8” or “user code done,” but still no AT. How to fix?

Use the correct AT v1.7 images and addresses. Flash boot_v1.7.bin at 0x00000 and user2.2048.new.5.bin at 0x01000. Add init and blank bins at their offsets, then reset. [Elektroda, khoam, post #18094010]

How do I completely clear the ESP8266 flash before reflashing?

Erase the flash, then write the AT bins again. This resolves persistent boot spam and configuration conflicts. The helper explicitly recommended clearing flash as a first step. [Elektroda, khoam, post #18098147]

AT+CWJAP returns +CWJAP:3 FAIL. What does that mean?

Code 3 means the access point was not found. Verify SSID, channel, and 2.4 GHz mode. Set station mode first with AT+CWMODE=1. Code 2 is wrong password; 1 is timeout. [“ESP8266 AT Instruction Set”]

Do I need to set CWMODE before joining Wi‑Fi?

Yes. Use AT+CWMODE=1 (Station), 2 (SoftAP), or 3 (both). Then issue AT+CWJAP="ssid","pass". This order prevents association problems. [“ESP8266 AT Instruction Set”]

What power and USB‑TTL levels should I use?

Provide 3.3 V power and 3.3 V UART levels. Powering a 3.3 V USB‑TTL with 5 V caused UART issues here. Direct ESP8266 to 3.3 V USB‑TTL restored reliable communication. Avoid 5 V on ESP pins. [Elektroda, adamekamator, post #18098578]

Which flashing tools and settings worked in this thread?

NodeMCU Firmware Programmer, XTCOM_UTIL, and Espressif’s Flash Download Tool worked. Effective settings recorded: Flash size 4MByte, Speed 40 MHz, Mode DIO. Match these with your boot log for reliability. [Elektroda, adamekamator, post #18094113]

What do CIPMODE and CIPMUX do for TCP connections?

CIPMODE sets transparent (1) or normal mode (0). CIPMUX=1 enables multiple connections; 0 allows a single connection. Typical setup uses CIPMODE=0 and CIPMUX=1 before CIPSTART. [“ESP8266 AT Instruction Set”]

Why does the boot log show “SPI Speed 40MHz, SPI Mode DIO, SPI Flash Size 32Mbit”?

It reports the detected configuration. 32 Mbit equals 4 MB, guiding your flasher settings. Use these values to choose flash size and SPI mode. This confirms hardware parameters. [Elektroda, adamekamator, post #18094113]
Generated by the language model.
ADVERTISEMENT