Page 1 of 1

Document for builtin USB-JTAG debugging

Posted: Fri Aug 04, 2023 9:21 am
by Vineethad
We are using ESP32 modules and the tool is ESP-IDF VScode. So we are decided to debug through a builtin USB-JTAG debugger, for that please provide a document .


Thanks in advance

Re: Document for builtin USB-JTAG debugging

Posted: Fri Aug 04, 2023 11:29 am
by Yuvaraj1867
Which ESP32 Module you have?

Re: Document for builtin USB-JTAG debugging

Posted: Fri Aug 04, 2023 12:40 pm
by Vineethad
I have ESP32-C6, ESP32-C3 and ESP32-S3 modules.

Re: Document for builtin USB-JTAG debugging

Posted: Mon Aug 07, 2023 6:30 am
by Yuvaraj1867

Re: Document for builtin USB-JTAG debugging

Posted: Mon Aug 07, 2023 12:25 pm
by Vineethad
Thank you for the response.

The hardware design is completed for the ESP32-C6 module. Being new to this ESP-IDF VSCode tool, I am little bit confused about debugging and I have some queries which are mentioned below :

1. Where can I start debugging ?
2. what are the setting have to be change in software ?
3. What are the steps involved in Built-in JTAG debugging ?

Please help me...

Thanks

Re: Document for builtin USB-JTAG debugging

Posted: Wed Aug 09, 2023 8:13 am
by Yuvaraj1867
Hi,

After installing VS code 1st step add ESP-IDF as extension by referring this document - https://github.com/espressif/vscode-esp ... install.md

Detailed debugging procedure found here - https://github.com/espressif/vscode-esp ... bugging.md

Re: Document for builtin USB-JTAG debugging

Posted: Wed Aug 09, 2023 8:24 am
by Yuvaraj1867
ESP32-C6 has a built-in JTAG circuitry and can be debugged without any additional chip.
By default, ESP32-C6 JTAG interface is connected to the built-in USB_SERIAL_JTAG peripheral.
Only an USB cable connected to the D+/D- pins is necessary.

ESP32-C6 Pin USB Signal
GPIO12 D-
GPIO13 D+
5V V_BUS
GND Ground

Re: Document for builtin USB-JTAG debugging

Posted: Wed Aug 09, 2023 9:49 am
by Vineethad
So we no need to change the any settings like efuse0, efuse1, efuse2 in JTAG source control configuration.

Re: Document for builtin USB-JTAG debugging

Posted: Wed Aug 09, 2023 11:44 am
by Yuvaraj1867
Yes. ESP32C6 built-in JTAG circuitry with VSCode debugging works fine.

Re: Document for builtin USB-JTAG debugging

Posted: Sat Aug 12, 2023 6:05 am
by Vineethad
I am little bit confused about In JTAG source control table EFUSE bits are given like this EFUSE_DIS_PAD_JTAG = 0, EFUSE_DIS_USB_JTAG = 0 and EFUSE_JTAG_SEL_ENABLE= 1. But in Sdkconfig.h file EFUSE bits are set to EFUSE_DIS_PAD_JTAG = 1 and EFUSE_DIS_USB_JTAG = 1 .

Is this configuration works for inbuilt USB_SERIAL_JTAG ? If not how to change this bits in sdkconfig.h file.