Closed teasin951 closed 3 months ago
Writing to serial is timing out. Please make sure that your application supports an interactive console and that you have picked the correct console for serial communication.
It looks like you might be using the USB port connected to USB_SERIAL_JTAG peripheral. By default, the application is configured to use UART port. Please try enabling CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG option and see if that helps.
This indeed fixed it. Thank you very much for the swift response!
Answers checklist.
IDF version.
v5.3
Espressif SoC revision.
ESP32-C6 (QFN40) (revision v0.0)
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
nanoESP32-C6 v1.0
Power Supply used.
USB
What is the expected behavior?
After following the steps outlined in README.md -> Build and flash -> 2., the Example output -> Test project output, would be expected.
What is the actual behavior?
The devices flashes, but monitoring does not start. After manually opening the monitoring, it prints out the test headers but does not perform any tests. Pressing Enter afterwards does not bring up menu, only prints: "Writing to serial is timing out. Please make sure that your application supports an interactive console and that you have picked the correct console for serial communication."
Steps to reproduce.
idf.py set-target ESP32C6
andidf.py -p /dev/ttyACM0 flash monitor
ESP-IDF: Monitor device
Debug Logs.
More Information.
I have originally encountered this in my own project when trying to create some unit tests using ESP-IDF's VSCode extension command
ESP-IDF: Unit Test: Build and flash unit test app for testing
. After that I tried it withidf.py
to no avail. The program seems to hang at unity_run_menu().I have tried this on Linux with ESP-IDF v5.3.0, ESP-IDF v5.2.2 and on Windows with ESP-IDF v5.3.0, everything produced the same result. The main application works as expected, as does e.g. blink example.