Espressif ESP32-S2 Programming Manual page 1387

Table of Contents

Advertisement

Chapter 4. API Guides
csrutil enable --without kext
5. Restart again
After these steps, serial port and JTAG can be used at the same time.
To carry on with debugging environment setup, proceed to section
Configure Other JTAG Interface
select, so it is able to operate with OpenOCD and ESP32-S2. Then follow three configuration steps below to get it
working.
Configure Hardware
1. Identify all pins / signals on JTAG interface and ESP32-S2 board, that should be connected to establish com-
munication.
ESP32-S2 Pin
MTDO / GPIO40
MTDI / GPIO41
MTCK / GPIO39
MTMS / GPIO42
2. Verify if ESP32-S2 pins used for JTAG communication are not connected to some other h/w that may disturb
JTAG operation.
3. Connect identified pin / signals of ESP32-S2 and JTAG interface.
Configure Drivers
You may need to install driver s/w to make JTAG work with computer. Refer to documentation
of JTAG adapter, that should provide related details.
Connect
Connect JTAG interface to the computer. Power on ESP32-S2 and JTAG interface boards. Check if
JTAG interface is visible by computer.
To carry on with debugging environment setup, proceed to section
Run OpenOCD
Once target is configured and connected to computer, you are ready to launch OpenOCD.
Open a terminal and set it up for using the ESP-IDF as described in the
Getting Started Guide. Then run OpenOCD (this command works on Windows, Linux, and macOS):
openocd -f board/esp32s2-kaluga-1.cfg
Note: The files provided after -f above are specific for ESP32-S2-Kaluga-1 board. You may need to provide
different files depending on the hardware that is used. For guidance see
For example, board/esp32c3-ftdi.cfg can be used for a custom board with an FT2232H or FT232H chip
used for JTAG connection, or with ESP-Prog.
You should now see similar output (this log is for ESP32-S2-Kaluga-1 board):
Espressif Systems
Refer to section
Selecting JTAG Adapter
Table 4: ESP32-S2 pins and JTAG signals
JTAG Signal
TDO
TDI
TCK
TMS
1376
Submit Document Feedback
Run
OpenOCD.
for guidance what JTAG interface to
Run
OpenOCD.
setting up the environment
Configuration of OpenOCD for specific
section of the
target.
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF