2017-06-11 19:12:30 +00:00
Configure Other JTAG Interface
==============================
2019-01-29 09:22:29 +00:00
:link_to_translation:`zh_CN:[中文]`
2017-06-11 19:12:30 +00:00
2019-12-09 03:01:09 +00:00
Refer to section :ref: `jtag-debugging-selecting-jtag-adapter` for guidance what JTAG interface to select, so it is able to operate with OpenOCD and {IDF_TARGET_NAME}. Then follow three configuration steps below to get it working.
2017-06-11 19:12:30 +00:00
Configure Hardware
^^^^^^^^^^^^^^^^^^
2019-12-09 03:01:09 +00:00
1. Identify all pins / signals on JTAG interface and {IDF_TARGET_NAME} board, that should be connected to establish communication.
2017-06-11 19:12:30 +00:00
2019-12-09 03:01:09 +00:00
.. only :: esp32
2017-06-11 19:12:30 +00:00
2019-12-09 03:01:09 +00:00
+---+-----------------------+-------------+
| | ESP32 Pin | JTAG Signal |
+===+=======================+=============+
| 1 | CHIP_PU | TRST_N |
+---+-----------------------+-------------+
| 2 | MTDO / GPIO15 | TDO |
+---+-----------------------+-------------+
| 3 | MTDI / GPIO12 | TDI |
+---+-----------------------+-------------+
| 4 | MTCK / GPIO13 | TCK |
+---+-----------------------+-------------+
| 5 | MTMS / GPIO14 | TMS |
+---+-----------------------+-------------+
| 6 | GND | GND |
+---+-----------------------+-------------+
2017-06-11 19:12:30 +00:00
2019-12-09 03:01:09 +00:00
.. only :: esp32s2
+---+-----------------------+-------------+
| | ESP32-S2 Pin | JTAG Signal |
+===+=======================+=============+
| 1 | CHIP_PU | TRST_N |
+---+-----------------------+-------------+
| 2 | MTDO / GPIO40 | TDO |
+---+-----------------------+-------------+
| 3 | MTDI / GPIO41 | TDI |
+---+-----------------------+-------------+
| 4 | MTCK / GPIO39 | TCK |
+---+-----------------------+-------------+
| 5 | MTMS / GPIO42 | TMS |
+---+-----------------------+-------------+
| 6 | GND | GND |
+---+-----------------------+-------------+
2. Verify if {IDF_TARGET_NAME} pins used for JTAG communication are not connected to some other h/w that may disturb JTAG operation.
3. Connect identified pin / signals of {IDF_TARGET_NAME} and JTAG interface.
2017-06-11 19:12:30 +00:00
Configure Drivers
^^^^^^^^^^^^^^^^^
2019-12-09 03:01:09 +00:00
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.
2017-06-11 19:12:30 +00:00
Connect
^^^^^^^
2019-12-09 03:01:09 +00:00
Connect JTAG interface to the computer. Power on {IDF_TARGET_NAME} and JTAG interface boards. Check if JTAG interface is visible by computer.
2017-06-11 19:12:30 +00:00
To carry on with debugging environment setup, proceed to section :ref: `jtag-debugging-run-openocd` .