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

User avatar
jiapei100
Posts: 2
Joined: Wed Sep 14, 2016 5:08 am

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

Postby jiapei100 » Tue Feb 06, 2024 6:44 am

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
Longer Vision Technology

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Tue Feb 06, 2024 7:26 am

Can you try forcing the chip into download mode (by pulling GPIO0 low) and resetting?

wolfrose
Posts: 16
Joined: Mon Oct 26, 2020 2:58 pm

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

Postby wolfrose » Sun Sep 01, 2024 8:08 am

Pulling IO0 to GND worked with me, the system must enter boot mode for reflashing.

Who is online

Users browsing this forum: No registered users and 151 guests