Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Error at run_serial_tool.cmake:66 (message): (IDFGH-11196) #12363

Closed
3 tasks done
Pklug opened this issue Oct 6, 2023 · 6 comments
Closed
3 tasks done

CMake Error at run_serial_tool.cmake:66 (message): (IDFGH-11196) #12363

Pklug opened this issue Oct 6, 2023 · 6 comments
Assignees
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally

Comments

@Pklug
Copy link

Pklug commented Oct 6, 2023

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I am getting the following error when trying to flash the ESP-IDF firmware to my ESP32 device:

CMake Error at run_serial_tool.cmake:66 (message):
WhatsApp Image 2023-10-07 at 01 33 03
Environment:

Operating system: Ubuntu

on virtual machine ESP-IDF version: 5.1.1 ESP32 device: esp32c6-devkitc- v1.2

I have tried the following troubleshooting steps: Made sure that the ESP32 device is connected to my computer and in the correct mode to be flashed. Tried flashing the ESP-IDF firmware using the esptool.py command-line tool. Tried flashing the ESP-IDF firmware using a different IDE or build system. Tried flashing the ESP-IDF firmware to a different ESP32 device. I am still getting the error message. Question: What can I do to fix this error?
@shubhamdp @dhrishi @espressif-bot

@Pklug Pklug closed this as completed Oct 6, 2023
@Pklug Pklug reopened this Oct 6, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Oct 6, 2023
@github-actions github-actions bot changed the title CMake Error at run_serial_tool.cmake:66 (message): CMake Error at run_serial_tool.cmake:66 (message): (IDFGH-11196) Oct 6, 2023
@dobairoland
Copy link
Collaborator

on virtual machine

If you are trying to flash a device from a virtual machine then you have to make it available there. When you connect a device to a host machine, it is available there but not in the virtual machines. Usually, the virtual environment software has a setting page when the serial device can be forwarded to the virtual machine.

@dobairoland
Copy link
Collaborator

Related hints with suggestions were added on the esptool side: espressif/esptool@d61da77

@dobairoland
Copy link
Collaborator

I'm closing this for inactivity.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Won't Do This will not be worked on and removed Status: Opened Issue is new labels Oct 23, 2023
@Pklug
Copy link
Author

Pklug commented Nov 8, 2023

Hello @dobairoland I tried the recommended it is yet not working. These are the log of my work
`[1/5] cd /home/ubu/esp/esp-idf/esp32c6-blink-led/build/esp-idf/esptool_py && /home/ubu/.espressif/python_env/idf5.3_py3.11_env/bin/python /home/ubu/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app /home/ubu/esp/esp-idf/esp32c6-blink-led/build/partition_table/partition-table.bin /home/ubu/esp/esp-idf/esp32c6-blink-led/build/esp32c6-blink-led.bin
esp32c6-blink-led.bin binary size 0x224d0 bytes. Smallest app partition is 0x100000 bytes. 0xddb30 bytes (87%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cd /home/ubu/esp/esp-idf/esp32c6-blink-led/build/bootloader/esp-idf/esptool_py && /home/ubu/.espressif/python_env/idf5.3_py3.11_env/bin/python /home/ubu/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /home/ubu/esp/esp-idf/esp32c6-blink-led/build/bootloader/bootloader.bin
Bootloader binary size 0x5410 bytes. 0x2bf0 bytes (34%) free.
[3/5] No install step for 'bootloader'
[4/5] Completed 'bootloader'
[4/5] cd /home/ubu/esp/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH=/home/ubu/esp/esp-idf -D "SERIAL_TOOL=/home/ubu/.espressif/python_env/idf5.3_py3.11_env/bin/python;;/home/ubu/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32c6" -D "SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args" -D WORKING_DIRECTORY=/home/ubu/esp/esp-idf/esp32c6-blink-led/build -P /home/ubu/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
esptool.py --chip esp32c6 -p Port -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x0 bootloader/bootloader.bin 0x10000 esp32c6-blink-led.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.7.dev2
Serial port Port

A fatal error occurred: Could not open Port, the port is busy or doesn't exist.
([Errno 2] could not open port Port: [Errno 2] No such file or directory: 'Port')

FAILED: CMakeFiles/flash /home/ubu/esp/esp-idf/esp32c6-blink-led/build/CMakeFiles/flash
cd /home/ubu/esp/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH=/home/ubu/esp/esp-idf -D "SERIAL_TOOL=/home/ubu/.espressif/python_env/idf5.3_py3.11_env/bin/python;;/home/ubu/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32c6" -D "SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args" -D WORKING_DIRECTORY=/home/ubu/esp/esp-idf/esp32c6-blink-led/build -P /home/ubu/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
ninja: build stopped: subcommand failed.
`

@dobairoland
Copy link
Collaborator

Serial port Port

A fatal error occurred: Could not open Port, the port is busy or doesn't exist.
([Errno 2] could not open port Port: [Errno 2] No such file or directory: 'Port')

Port is not a valid port name. Usually it is either /dev/ttyUSB0 or /dev/ttyACM0 (or some greater number than 0 in the name).

@Zeni241
Copy link

Zeni241 commented Sep 18, 2024

In my case it was the wires I was using to connect USB-to-UART Bridge to my custom esp32 board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

4 participants