D1 mini(ESP8266) can not flash via ESPhome

this is a problem with D1 mini, right? There is a comport and cannot be flashed

probably,
what installation method did you choose?
“plug into the computer running esp dashboard” ?
you could try replacing the usb cable
or using edge/chrome “plug into this computer”

if you already chose the last one and this computer is a laptop have the power plugged in.

Also, the next time, could you copy past the text instead of making photo’s?
even a screenshot would be easier to read.

It is explicitly mentioning the used baud rate of 460800. Switch back to 115200 and see if that works. If not, try with another D1 Mini board.

When you plug the board in, dmesg will tell you which device it’s serial port created.

I get exactly the same error when flashing via the Home Assistant running Raspberry Pi. Can’t get it to work over any computers (tried two macs and one Windows) USB. It will always say failed to initialized while I get that “No Serial data” detected via the Raspberry. Do I have to bring the D1 mini into flash mode before or does it do this automatically?

Here is the log:

INFO ESPHome 2023.8.2
INFO Reading configuration /config/esphome/tag.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing tag (board: esp01_1m; framework: arduino; platform: platformio/[email protected])
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 1.2.3
|-- ESPAsyncWebServer-esphome @ 2.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
RAM:   [====      ]  41.3% (used 33828 bytes from 81920 bytes)
Flash: [=====     ]  47.1% (used 482145 bytes from 1023984 bytes)
========================= [SUCCESS] Took 7.73 seconds =========================
INFO Successfully compiled program.
esptool.py v4.6.2
Serial port /dev/ttyUSB0
Connecting......................................
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 460800 --port /dev/ttyUSB0 --chip esp8266 write_flash -z --flash_size detect 0x0 /data/tag/.pioenvs/tag/firmware.bin locally.
INFO Upload with baud rate 460800 failed. Trying again with baud rate 115200.
esptool.py v4.6.2
Serial port /dev/ttyUSB0
Connecting......................................
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 115200 --port /dev/ttyUSB0 --chip esp8266 write_flash -z --flash_size detect 0x0 /data/tag/.pioenvs/tag/firmware.bin locally.

Did you short gpio to gnd when applying power?

Im having the exact same problem. All my regular esp8266 boards flash fine. Same cable. Any solutions found?

I’ve got the same problem. Here’s my log:

INFO ESPHome 2024.3.0
INFO Reading configuration /config/esphome/1-wire-d1-mini-pro.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing 1-wire-d1-mini-pro (board: esp01_1m; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
Compiling .pioenvs/1-wire-d1-mini-pro/src/main.cpp.o
Linking .pioenvs/1-wire-d1-mini-pro/firmware.elf
RAM:   [====      ]  42.3% (used 34640 bytes from 81920 bytes)
Flash: [=====     ]  48.6% (used 497213 bytes from 1023984 bytes)
Building .pioenvs/1-wire-d1-mini-pro/firmware.bin
esp8266_copy_factory_bin([".pioenvs/1-wire-d1-mini-pro/firmware.bin"], [".pioenvs/1-wire-d1-mini-pro/firmware.elf"])
========================= [SUCCESS] Took 18.35 seconds =========================
INFO Successfully compiled program.
esptool.py v4.7.0
Serial port /dev/ttyUSB0
Connecting......................................
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 460800 --port /dev/ttyUSB0 --chip esp8266 write_flash -z --flash_size detect 0x0 /data/build/1-wire-d1-mini-pro/.pioenvs/1-wire-d1-mini-pro/firmware.bin locally.
INFO Upload with baud rate 460800 failed. Trying again with baud rate 115200.
esptool.py v4.7.0
Serial port /dev/ttyUSB0
Connecting......................................
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 115200 --port /dev/ttyUSB0 --chip esp8266 write_flash -z --flash_size detect 0x0 /data/build/1-wire-d1-mini-pro/.pioenvs/1-wire-d1-mini-pro/firmware.bin locally.

Has anyone found a solution?

Thanks - Rowan

Same question as last time. Did you short gpio0 to gnd when applying power?

Also are you 100% sure it is ttyUSB0?