ESP32-S3 JTAG Debugging User Guide
创始人
2025-05-28 17:53:52
0

## 1 The ESP32-S3 support use the JTAG pins or USB pins for JTAG debugging. For more instructions,please read the “ESP32-S3 JTAG Debugging ”guide.

  • The ESP32-S3 JTAG pins are GPIO39~GPIO42, please read the "ESP32-S3 pins and JTAG signals " instructions.

For debugging with JTAG pins, you need to use the ESP-PROG tool.

ESP32-S3 PinJTAG Signal
MTDO / GPIO40TDO
MTDI / GPIO41TDI
MTCK / GPIO39TCK
MTMS / GPIO42TMS
  • ESP32-S3 has a built-in JTAG circuitry and can be debugged without any additional chip. Only an USB cable connected to the D+/D- pins is necessary. The necessary connections are shown in the following section. Please read the "Configure ESP32-S3 built-in JTAG Interface " instructions.
ESP32-S3 PinUSB Signal
GPIO19D-
GPIO20D+
5VV_BUS
GNDGround

2 Before JTAG debugging , please set up the esp-idf SDK software environment. please refer to the "ESP-IDF Programming Guide " .The ESP32-S3 only supports release/v4.4 and later version of the ESP-IDF SDK. Please refer to the “ESP-IDF Release and SoC Compatibility” instructions.

The software development environment we recommend to you is the simplest.

  • For windows ,You can use “ESP-IDF Tools Installer ” to install ESP-IDF SDK Environment . Please refer to the “Set up the ESP-IDF SDK compilation environment + Visual Studio Code software programming environment” guide.

  • For Ubuntu(We recommend) , Please read "Standard Setup of Toolchain for Linux " instructions. You can also refer to the “How to set up the software development environment ESP-IDF for ESP32-S3” guide.

3 The following are the JTAG debugging steps:

  • Under the esp-idf SDK compilation environment, to open the “openocd” environment,Please refer to the "Run OpenOCD " . For example,
openocd -f C:\Users\caiguanhong\.espressif\tools\openocd-esp32\v0.10.0-esp32-20211111\openocd-esp32\share\openocd\scripts\board\esp32s3-builtin.cfg
  • Next , to flash the firmware:
idf.py flash
  • Then , Under the current debug project, create a configuration file named “gdbinit” and write the following. Please read the “Command Line ” instructions.
target remote :3333
set remote hardware-watchpoint-limit 2
mon reset halt
flushregs
thb app_main
c

图像_2023-03-10_15-05-59.png

  • Last , to enable the “GDB” environment. Please refer to “” . For example,
xtensa-esp32s3-elf-gdb -x gdbinit build\hello_world.elf

图像_2023-03-10_15-08-04.png

  1. The BSDL file can refer to “openocd-esp32 ” Source Code.

相关内容

热门资讯

非法捕鸟承担刑责 还须赔偿生态... 来源:人民网-人民日报222 巍巍贺兰山和九曲黄河之间,就是鼎鼎大名的“塞上江南”。近年来,随着黄河...
充电宝召回,多家快递拒收?记者... 来源:中新经纬 罗马仕、安克近日相继召回问题充电宝引发关注。虽然两家公司均给出了清晰的登记及召回流程...
坎坷是一种经历,让我们真切的理...   睿智的人看得透,故不争;豁达的人想得开,故不斗;得道的人晓天意,故不急;厚德的人重谦和,故不噪;...
恒玄科技股价大跌3.12%,天... 6月26日,恒玄科技跌3.12%,截至发稿,报348.07元/股,成交4.79亿元,换手率1.13%...
富信科技跌1.04%,成交额1... 6月26日,富信科技盘中下跌1.04%,截至10:46,报35.33元/股,成交1497.92万元,...