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.

相关内容

热门资讯

探索监督贯通协调机制新路径 (来源:内蒙古日报)转自:内蒙古日报人大监督是党和国家监督体系的重要组成部分,是在党的领导下,代表国...
深耕陇原初心不改 担当使命砥砺... “星火成炬 光华同行”身边榜样评选暨主题宣讲活动。 投教活动——走进上市公司。 华龙证券...
扎根甘肃大地 绘就高质量发展新... 邮储银行平凉市分行工作人员在高速公路施工现场走访。 邮储银行白银市分行工作人员在甘肃大象能源科...
全国城镇新增就业1210万人 新华社北京12月16日电(记者张晓洁)记者12月16日从人力资源社会保障部获悉,1至11月,全国城镇...
遂川城乡居民养老保险服务“四不... “我们原来领养老金,要走几十公里到圩镇取钱。现在可好了,在村中的代办点就可以领得到养老金,太方便了,...