logo elektroda
logo elektroda
X
logo elektroda

[Solved] Error uploading ESPHome firmware to ESP-01 via FTDI adapter

Vexator 1647 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20871377
    Vexator
    Level 10  
    Hey, I'm completely green when it comes to microcontrollers, so forgive me if I'm doing something obvious wrong or asking the wrong questions.

    I have an ESP-01 (S I think) and an FTDI adapter connected like this:
    Diagram showing ESP-01S connection with FTDI adapter
    Because what I want to upload will later connect to my smarthome, I want to use ESPHome Flasher (which underneath uses esptool.py) to generate and upload the binaries based on the .yaml file.
    Compilation succeeds, unfortunately during upload I get this error:

    ERROR Running command failed: Failed to connect to ESP8266: No serial data received.
    For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
    ERROR Please try running esptool.py --before default_reset --after hard_reset --baud 9600 --port COM5 --chip esp8266 write_flash -z --flash_size detect 0x0 '.esphomebuildsensor.pioenvsensorfirmware.bin' locally.

    Using direct esptool.py returns me:
    A fatal error occurred: Failed to connect to ESP8266: Timed out waiting for packet header

    Am I doing something wrong, or is my ESP faulty?

    Added after 1 [minute]:

    p.s. and maybe one of you lives in the north of Warsaw and would be willing to see what I'm doing wrong?
  • ADVERTISEMENT
  • Helpful post
    #2 20871415
    madamsz1
    Level 41  
    There is no need to connect that extra VCC under the CH_PD/EN pin just power on VCC . And if I see correctly you have swapped TX with RX.
    Pin diagram of the ESP8266-01 module with labels. .
  • ADVERTISEMENT
  • #3 20872380
    Vexator
    Level 10  
    TX from one to RX of the other, so I guess it's ok
    With this CH_PD you were right
    I already know what I did wrong.... the board has the pins on the other side so I had everything the other way around :D .
  • ADVERTISEMENT
  • #4 20881035
    Vexator
    Level 10  
    Hey, it's working, thanks
  • #5 20889482
    Vexator
    Level 10  
    1. removed the connection to the CH_PD
    2. flipped the board over ;) .
ADVERTISEMENT