-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Help with command line debugging on esp32-c3-wroom (IDFGH-14282) #15075
Comments
That's true. For this to work, you need to connect to the chip using it's built-in USB port, not via a USB-UART converter such as CP2102. This depends on your development board. Additionally, you are running I would recommend to run Some links for reference: |
@igrr Thanks for the quick reply.
So, Anyway, here is the output:
This is very confusing. There is only one micro-usb connector on the esp32. There is no alternative. It is the only USB connection. If that is the case, how can a separate USB be possible? |
On this specific development board, microUSB port is connected to a CP2102 USB-UART bridge. Internal USB port of ESP32-C3 is not connected to a physical USB connector. However you can connect a USB breakout cable such as this one https://www.adafruit.com/product/4448 to the pins on the side of the board. Connection can be done according to https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/jtag-debugging/configure-builtin-jtag.html#configure-hardware I wrote about a couple of alternative options earlier in espressif/openocd-esp32#343 (comment) |
Hmm. I have an esp32-s3-wroom-01. Does this mean that I can move my app over to the s3, plug into the "USB" port, and debug should "just work"? |
ESP32-S3-WROOM-01 is the name of a module. I am not sure which development board with this module you have. If you have an ESP32-S3-DevKitC-1 then it should work as you have described. |
Excellent! It is an ESP32-S3-DevKitC-1. for monitoring, do I use the USB or UART port? |
Both ports should work for monitoring, however depending on the one you choose you might need to adjust the console output channel in menuconfig. https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/stdio.html#configuration |
Thanks! |
Could you please describe what exactly didn't work? (No /dev/cu... port found, or port found but no output, or some other behavior?) |
Ah, good point. I didn't say how it didn't work. Apologies. It simply hung when I tried As for the adapter, I made one that simply breaks out all the connections and I matched the pin connections per the description here |
Answers checklist.
IDF version.
5.3.1
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
The command
idf.py gdbtui
should start debugging for my app.What is the actual behavior?
I get this output:
More Information.
I am completely confused about how to get GDB working for this environment. Supposedly, the esp32-c3-wroom chip does not require openocd or an external jtag. True?
Either way, I cannot get GDB to work in the simpliest way I can configure.
The text was updated successfully, but these errors were encountered: