Page 1 of 1

This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or driver

Posted: Tue Feb 06, 2024 6:44 am
by jiapei100
Even failed to flash just **hello_world**

```
[2/3] cd /opt/Espressif/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH=/opt/Espressif/esp...es/get-started/hello_world/build -P /opt/Espressif/esp-idf/components/esptool_py/run_serial_tool.cmake
esptool.py --chip esp32s3 -p /dev/ttyACM0 -b 115200 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 hello_world.bin 0x8000 partition_table/partition-table.bin
esptool.py vv4.8.dev1
Serial port /dev/ttyACM0
Connecting...

A serial exception error occurred: Write timeout
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esp ... oting.html
CMake Error at run_serial_tool.cmake:66 (message):

~/.espressif/python_env/idf5.3_py3.10_env/bin/python;;/opt/Espressif/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32s3
failed.



FAILED: CMakeFiles/flash ....../esp-idf/examples/get-started/hello_world/build/CMakeFiles/flash
cd /opt/Espressif/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH=/opt/Espressif/esp-idf -D "SERIAL_TOOL=~/.espressif/python_env/idf5.3_py3.10_env/bin/python;;/opt/Espressif/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32s3" -D "SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args" -D WORKING_DIRECTORY=....../esp-idf/examples/get-started/hello_world/build -P /opt/Espressif/esp-idf/components/esptool_py/run_serial_tool.cmake
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the ....../esp-idf/examples/get-started/hello_world/build/log/idf_py_stderr_output_432108 and ....../esp-idf/examples/get-started/hello_world/build/log/idf_py_stdout_output_432108
```


Cheers
Pei

Re: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or dr

Posted: Tue Feb 06, 2024 7:26 am
by ESP_Sprite
Can you try forcing the chip into download mode (by pulling GPIO0 low) and resetting?

Re: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or dr

Posted: Sun Sep 01, 2024 8:08 am
by wolfrose
Pulling IO0 to GND worked with me, the system must enter boot mode for reflashing.