Debug connection through JTAG not always working in VSCode

vazquezfran
Posts: 5
Joined: Thu Jun 06, 2024 1:41 pm

Debug connection through JTAG not always working in VSCode

Postby vazquezfran » Thu Jun 06, 2024 1:52 pm

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!

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Debug connection through JTAG not always working in VSCode

Postby ESP_bignacio » Fri Jun 07, 2024 8:11 am

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.

vazquezfran
Posts: 5
Joined: Thu Jun 06, 2024 1:41 pm

Re: Debug connection through JTAG not always working in VSCode

Postby vazquezfran » Fri Jun 07, 2024 10:24 am

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!

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Debug connection through JTAG not always working in VSCode

Postby ESP_bignacio » Thu Jun 13, 2024 3:45 am

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 29 guests