Page 1 of 1

ESP32 s3 mini JTAG connection using PlatformIO

Posted: Thu May 18, 2023 4:55 am
by arunkumar.av
Hello,

We are using ESP32 S3 mini for one of the application and using VS code + platformIO for code development. We need some clarification on below points.

1) Is it possible to flash and debug using JTAG lines (MTMS, MTDI, MTDO and MTCK) in the VS code + platformIO IDE? we are tried to debug using Segger Jlink but it is not happening.

2) If yes, is there any other GPIO need to be considered for programming or debugging? since all the GPIOs are occupied.


Thanks.

Re: ESP32 s3 mini JTAG connection using PlatformIO

Posted: Thu May 18, 2023 8:48 am
by ESP_Sprite
Yes, it is possible to use a J-link, but the JTAG port by default is connected to the internal USB-serial-JTAG device. You need to burn some eFuses to change that. (Alternatively, you can get rid of the J-link and connect an USB cable/connector directly to the USB-serial-JTAG on GPIO19 and 20. You can debug/flash using that as well, and you won't need an external adapter.)

Re: ESP32 s3 mini JTAG connection using PlatformIO

Posted: Thu May 18, 2023 12:14 pm
by arunkumar.av
Thank you for the support !

Is Segger Jlink supports ESP32S3 mini debug/Flashing?


Thanks.

Re: ESP32 s3 mini JTAG connection using PlatformIO

Posted: Fri May 19, 2023 3:53 pm
by ESP_Sprite
OpenOCD supports the J-link hardware for flashing and debugging. I don't think Seggers software does.