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

## 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.

相关内容

热门资讯

大连英博五连胜! 北京时间4月22日19:352026中国足球超级联赛第7轮大连英博海发做客沈阳铁西体育场对阵辽宁铁人...
文汇时评|草坪可坐的背后,是治... (来源:上观新闻)“感觉有一亿人都来赏花!”这句网络热梗,生动折射出正在举行的2026上海国际花卉节...
中国驻菲律宾大使馆举办“舟楫千... 中新网马尼拉4月22日电 (记者 张兴龙)“舟楫千年 丝路新章——巴郎盖船与中菲交往的历史回响”活动...
铜牛信息修订公司章程 完善治理... 北京铜牛信息科技股份有限公司(以下简称"铜牛信息")于2026年4月发布了修订后的《公司章程》,对公...
光环新网(300383.SZ)... 格隆汇4月22日丨光环新网(300383.SZ)在投资者互动平台表示,公司的主营业务为互联网数据中心...