-
Notifications
You must be signed in to change notification settings - Fork 136
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
Unable to debug ESP32-C3-DevKitC-02v1.1 on M1 MacOS using VS Code + ESP-IDF (But Flashing Code Works) (OCD-1063) #353
Comments
@Shu244 can you explain your jtag connection? You need a breakout cable like this: https://www.adafruit.com/product/4448 |
Hi @erhankur thank you for taking a look. I was reading this doc
I assumed that this means I can use the existing onboard micro USB on the dev board for debugging. Is this not the case? Thinking about it more, I suppose the USB is connected to the USB-UART bridge and connected to UART pins rather than the MCU's USB D-/D+ pins. I wish the documents were a little more clear about explicitly needing a separate USB wire. |
@Shu244 do you still need some help from our side? |
Sorry for the delay @erhankur . I am still having a lot of trouble trying to get the debugger to work. The following is the output when I clear the flash and try to start the debugger:
Thank you for helping, I have been stuck here and been unable to make progress. |
Before debugging, you first need to load the application. How do you do that? From one terminal
From the other terminal
|
Hi @erhankur I am using VS Code with ESP IDF extension. I am starting with the Blinky example and was able to flash the MCU and see the LED blinking. I feel confident the hardware and software is now set up properly. To start debugging, I am simply using the debug button in the IDE. |
Can you share your settings.json? In the meantime you can add |
@erhankur here is my
Here are the logs:
|
@Shu244 Thanks for the log but I don't see any error. What happens when you start debugging? What is the error you get? |
@erhankur yes I have a break point set, the debugger simply never starts: |
And any logs in the termninal/ debug console? @brianignacio5 could you please help? |
@erhankur the debug console had this log:
|
Please try debugging it this way. I wonder if you will still see a GDB error. I don't know the exact reason yet but seems you are not alone. https://stackoverflow.com/questions/78855046/esp32-gdb-debugging-error-on-m1-mac-dyld-missing-symbol-called |
Development Kit
ESP32-C3-DevKitC-02v1.1
Module or chip used
ESP32-C3-WROOM-02
Debug Adapter
Built-in JTAG
OpenOCD version
v0.12.0-esp32-20241016
Operating System
M1 Mac, MacOS 14.6.1
Using an IDE ?
VS Code with ESP-IDF extension
OpenOCD command line
Using VS Code built in debug button (settings below)
JTAG Clock Speed
N/A
ESP-IDF version
v5.4.0
Problem Description
I am unable to debug my ESP32 dev kit using the settings
I get the error:
I am able to flash the MCU, but I am unable to debug. I have been trying to get the debugging to work for many days and read a lot of the Espressif documentation, but none seem to help. Any help is greatly appreciated. Thank you!
Debug Logs
No response
Expected behavior
Enter debug mode.
Screenshots
No response
The text was updated successfully, but these errors were encountered: