logo elektroda
logo elektroda
X
logo elektroda

Failed to flash ESP8266 - error failed to leave the flash

Erektuser 1191 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17222752
    Erektuser
    Level 9  
    I have a problem with zaflashing the esp8266 chip. The module is connected correctly (GPIO0 to GND, RST and CHPD to Vcc via 10k ohms, external voltage 3.3V with proper current capacity). Baud on COM set to 115200. At the beginning I tried to flash with XTCOM_UTIL software ESP8266 v0.9.5.0 AT Firmware. The program connected correctly with the appropriate COM, when trying to ping the blue LED on the WIFI module blinked, so there seemed to be some communication. On the flashing attempt itself I got the message "Target com fail to connect!". I searched the internet for answers but to no avail, so I tried another program to upload a different software and my choice was NodeMCU flasher. After clicking the FLASH option, the program uploaded its own firmware. I then used ESPflasher to upload firmware v0.9.5.0 AT Firmware (as this is what I ultimately wanted to use). After selecting this firmware and trying to upload, the progress reached 99% and the error "failed to leave the flash" popped up. Since then the wifi modul has died and there is no communication with it. Do you have any idea how to erase the FLASH memory (erase flash in the FLASH DOWNLOAD TOOLS program unfortunately does not work due to lack of communication) or possibly know what could be the cause of this behaviour?
  • ADVERTISEMENT
  • #2 17282375
    Kolarz1963
    Level 10  
    And which module are you using? I ask because I also had problems with it. Somehow I managed but I would have to remember everything.
  • ADVERTISEMENT
  • #3 17282388
    lukaszd82
    Level 31  
    What kind of module is it? Write more about which ESP8266.
    See in my topic how I hook up the ESP8266-12F Link .
    The minimum connection is shown in the diagram as "Main module".
    I upload the soft via Arduino IDE.
    In order for me to upload new soft, I have to press the FLASH and RESET button.
    I let go of RESET when I see that the Arduino IDE is finished compiling the software, and I let go of FLASH when the environment starts uploading (or together with Reset after compilation).
    Otherwise uploading on these modules doesn't work for me.
  • ADVERTISEMENT
  • #4 17287844
    Kolarz1963
    Level 10  
    I'll write back tomorrow when I get caught up at work. From what I remember, to upload something new I did the following.
    I pressed the "reset" button and while holding it I disconnected the USB cable .While still holding the "reset" button I reconnected the USB cable to the computer. However, this did not always help, I don't know why. For modules that I thought were "dead " I had a way. I was implementing a program to flash the "Blynk" diode When I found that the diode built into the board was flashing, I went back to the procedure at the beginning of my post.
    Greetings!
  • #5 17287855
    simw
    Level 27  
    Erektuser wrote:
    I have a problem zflashing the esp8266 chip. The module is connected correctly (GPIO0 to GND, RST and CHPD to Vcc via 10k ohms, external voltage 3.3V with appropriate current capacity). Baud on COM set to 115200.
    .
    I use such a connection:
    Failed to flash ESP8266 - error failed to leave the flash .
    and I have no problem programming directly from the Arduino ide or Atmel Studio at 115200. I use the FT232RL adapter.
    As you can see there are some differences from your connection.
    Common connection errors include not connecting the ground between the chips and not connecting the Rx, TX correctly - not obvious to everyone.
    I have not used any combinations with pressing reset or the like.
    The upload programs you used I did not use.
ADVERTISEMENT