Hello,
I am working with a DevKit "esp32-c6-devkitc-1_v1.2" and I have installed in my PC the ESP-IDF v5.2.2 using the VSCode application to run it. Everything is set-up as default and I am working just with the "blink" example... I have also installed the drivers described in the "https://docs.espressif.com/projects/esp ... -jtag.html" page.
Connecting using the USB/JTAG connection, the "Flash" and "Monitor" options work perfectly. However for the debugging I have to try the "Launch" in VSCode around 5-8 times to manage to connect. Every time if fails it shows the "Failed to init Debug Adapter!" message.
Is there any idea why this is happening? Any help would be greatly appreciated.
Thanks!
Debug connection through JTAG not always working in VSCode
-
- Posts: 5
- Joined: Thu Jun 06, 2024 1:41 pm
-
- Posts: 229
- Joined: Wed May 02, 2018 12:12 pm
Re: Debug connection through JTAG not always working in VSCode
Hi !
We implemented a new debug adapter which is currently in GitHub master. You can try by installing this vsix installer: https://nightly.link/espressif/vscode-e ... n.vsix.zip
We also updated the debug tutorials documentation in here: https://github.com/espressif/vscode-esp ... bugging.md
Please give it a try and let us know how it goes.
We implemented a new debug adapter which is currently in GitHub master. You can try by installing this vsix installer: https://nightly.link/espressif/vscode-e ... n.vsix.zip
We also updated the debug tutorials documentation in here: https://github.com/espressif/vscode-esp ... bugging.md
Please give it a try and let us know how it goes.
-
- Posts: 5
- Joined: Thu Jun 06, 2024 1:41 pm
Re: Debug connection through JTAG not always working in VSCode
Hello,
I was initially trying to debug using the "type: "espidf" configuration to launch. After installing your Debug Adapter and changing to the "gdbtarget" type recommended in the "https://github.com/espressif/vscode-esp ... BUGGING.md" guide, I managed to debug without issues. I have one question then, is the "espidf" lauch type recommended to be used? or should we avoid using it?
Thanks for the help!
I was initially trying to debug using the "type: "espidf" configuration to launch. After installing your Debug Adapter and changing to the "gdbtarget" type recommended in the "https://github.com/espressif/vscode-esp ... BUGGING.md" guide, I managed to debug without issues. I have one question then, is the "espidf" lauch type recommended to be used? or should we avoid using it?
Thanks for the help!
-
- Posts: 229
- Joined: Wed May 02, 2018 12:12 pm
Re: Debug connection through JTAG not always working in VSCode
We are deprecating espidf target in favor of gdbtarget. In the future we will remove it entirely.
Who is online
Users browsing this forum: No registered users and 9 guests