Error during flashing a new image

Hey, I would like to override my ESP and get follow error

Serial port /dev/ttyUSB0
Connecting......................................
ERROR Running command failed: Failed to connect to ESP32: Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down.
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 esp32 write_flash -z --flash_size detect 0x10000 /data/xxx/.pioenvs/xxx/firmware.bin 0x1000 /data/xxx/.pioenvs/xxx/bootloader.bin 0x8000 /data/xxx/.pioenvs/xxx/partitions.bin 0xe000 /data/cache/platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin locally.
INFO Upload with baud rate 460800 failed. Trying again with baud rate 115200.
esptool.py v4.6
Serial port /dev/ttyUSB0
Connecting......................................
ERROR Running command failed: Failed to connect to ESP32: Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down.
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 esp32 write_flash -z --flash_size detect 0x10000 /data/xxx.pioenvs/xxx/firmware.bin 0x1000 /data/xxx/.pioenvs/xxx/bootloader.bin 0x8000 /data/xxx/.pioenvs/xxx/partitions.bin 0xe000 /data/cache/platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin locally.

What should I do?

Follow the instructions the error message gives you would be the first suggestion.

Off course I did that, but the error say nothing more.

"

Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down.

The chip successfully resets into the download mode and sends data to the host computer, but doesn’t receive any response sent by esptool. This implies a problem with the TX line running from the host to the ESP device. Double-check your board or breadboard circuit for any problems.
"

What is your device? How is it wired, and to what? Do you already have esphome on it? If so, does ota work?

The first flashed (also with USB) worked with esp home. The device is a esp32doit-devkit-v1
After that the updates via WiFi works, I don’t get any errors there.

The error only occurs when I connect the device to the USB port of thePI. USB cable has already been replaced.

The device may be broken of course.

Does it have a gpio0 or reset button?

Yes it if have one, but did not change anything after pressing it.

I updated via WiFi looks good so far. No idea (on 2 devices) what is broken with USB

I am also getting the same error. Any solution?

We need the exact logs, but are you sure you are using a data usb cable, not just a power cable?