|
11 | 11 |
|
12 | 12 | :: |
13 | 13 |
|
14 | | - openocd -f board/esp32h2-builtin.cfg |
| 14 | + openocd -f board/esp32h4-builtin.cfg |
15 | 15 |
|
16 | | -.. |run-openocd-device-name| replace:: ESP32-H2 through built-in USB connection |
| 16 | +.. |run-openocd-device-name| replace:: ESP32-H4 through built-in USB connection |
17 | 17 |
|
18 | 18 | --- |
19 | 19 |
|
20 | 20 | .. run-openocd-output |
21 | 21 |
|
22 | 22 | :: |
23 | 23 |
|
24 | | - user-name@computer-name:~/esp/esp-idf$ openocd -f board/esp32h2-builtin.cfg |
25 | | - Open On-Chip Debugger v0.12.0-esp32-20221026-175-g0f5217b3-dirty (2023-02-02-11:32) |
| 24 | + user-name@computer-name:~/esp/esp-idf$ openocd -f board/esp32h4-builtin.cfg |
| 25 | + Open On-Chip Debugger v0.12.0-esp32-20250707-152-g5b64e9cc-dirty (2025-09-02-09:30) |
26 | 26 | Licensed under GNU GPL v2 |
27 | 27 | For bug reports, read |
28 | 28 | http://openocd.org/doc/doxygen/bugs.html |
29 | 29 | Info : only one transport option; autoselecting 'jtag' |
30 | 30 | Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001 |
31 | 31 | Info : esp_usb_jtag: capabilities descriptor set to 0x2000 |
32 | | - Warn : Transport "jtag" was already selected |
33 | 32 | Info : Listening on port 6666 for tcl connections |
34 | 33 | Info : Listening on port 4444 for telnet connections |
35 | | - Info : esp_usb_jtag: serial (60:55:F9:F7:2C:3F) |
| 34 | + Info : esp_usb_jtag: serial (00:00:00:00:00:00) |
36 | 35 | Info : esp_usb_jtag: Device found. Base speed 24000KHz, div range 1 to 255 |
37 | 36 | Info : clock speed 24000 kHz |
38 | | - Info : JTAG tap: esp32h2.cpu tap/device found: 0x00010c25 (mfg: 0x612 (Espressif Systems), part: 0x0010, ver: 0x0) |
39 | | - Info : datacount=2 progbufsize=16 |
40 | | - Info : Examined RISC-V core; found 1 harts |
41 | | - Info : hart 0: XLEN=32, misa=0x40903105 |
42 | | - Info : starting gdb server for esp32h2 on 3333 |
| 37 | + Info : JTAG tap: esp32h4.tap0 tap/device found: 0x0001cc25 (mfg: 0x612 (Espressif Systems), part: 0x001c, ver: 0x0) |
| 38 | + Info : [esp32h4.hp.cpu0] datacount=1 progbufsize=2 |
| 39 | + Info : [esp32h4.hp.cpu0] Core 0 made part of halt group 1. |
| 40 | + Info : [esp32h4.hp.cpu0] Examined RISC-V core; found 2 harts |
| 41 | + Info : [esp32h4.hp.cpu0] XLEN=32, misa=0x40903127 |
| 42 | + Info : [esp32h4.hp.cpu0] Examination succeed |
| 43 | + Info : [esp32h4.hp.cpu1] datacount=1 progbufsize=2 |
| 44 | + Info : [esp32h4.hp.cpu1] Hart unexpectedly reset! |
| 45 | + Info : [esp32h4.hp.cpu1] Core 1 made part of halt group 1. |
| 46 | + Info : [esp32h4.hp.cpu1] Examined RISC-V core; found 2 harts |
| 47 | + Info : [esp32h4.hp.cpu1] XLEN=32, misa=0x40903127 |
| 48 | + Info : [esp32h4.hp.cpu1] Examination succeed |
| 49 | + Info : [esp32h4.hp.cpu0] starting gdb server on 3333 |
43 | 50 | Info : Listening on port 3333 for gdb connections |
44 | 51 |
|
45 | | -.. |run-openocd-cfg-file-err| replace:: ``Can't find board/esp32h2-builtin.cfg`` |
| 52 | +.. |run-openocd-cfg-file-err| replace:: ``Can't find board/esp32h4-builtin.cfg`` |
46 | 53 |
|
47 | 54 | --- |
48 | 55 |
|
49 | 56 | .. run-openocd-upload |
50 | 57 |
|
51 | 58 | :: |
52 | 59 |
|
53 | | - openocd -f board/esp32h2-builtin.cfg -c "program_esp filename.bin 0x10000 verify exit" |
| 60 | + openocd -f board/esp32h4-builtin.cfg -c "program_esp filename.bin 0x10000 verify exit" |
54 | 61 |
|
55 | 62 | --- |
56 | 63 |
|
57 | 64 | .. run-openocd-src-linux |
58 | 65 |
|
59 | 66 | .. code-block:: bash |
60 | 67 |
|
61 | | - src/openocd -f board/esp32h2-builtin.cfg |
| 68 | + src/openocd -f board/esp32h4-builtin.cfg |
62 | 69 |
|
63 | 70 | --- |
64 | 71 |
|
65 | 72 | .. run-openocd-src-win |
66 | 73 |
|
67 | 74 | .. code-block:: batch |
68 | 75 |
|
69 | | - src\openocd -f board/esp32h2-builtin.cfg |
| 76 | + src\openocd -f board/esp32h4-builtin.cfg |
70 | 77 |
|
71 | 78 | --- |
72 | 79 |
|
73 | 80 | .. idf-py-openocd-default-cfg |
74 | 81 |
|
75 | | -.. |idf-py-def-cfg| replace:: ``-f board/esp32h2-builtin.cfg`` |
| 82 | +.. |idf-py-def-cfg| replace:: ``-f board/esp32h4-builtin.cfg`` |
76 | 83 |
|
77 | 84 | --- |
78 | 85 |
|
79 | 86 | .. run-openocd-appimage-offset |
80 | 87 |
|
81 | 88 | :: |
82 | 89 |
|
83 | | - openocd -f board/esp32h2-builtin.cfg -c "init; halt; esp appimage_offset 0x210000" |
| 90 | + openocd -f board/esp32h4-builtin.cfg -c "init; halt; esp appimage_offset 0x210000" |
84 | 91 |
|
85 | 92 | --- |
86 | 93 |
|
87 | 94 | .. openocd-cfg-files |
88 | 95 |
|
89 | | -.. list-table:: OpenOCD configuration files for ESP32-H2 |
| 96 | +.. list-table:: OpenOCD configuration files for ESP32-H4 |
90 | 97 | :widths: 25 75 |
91 | 98 | :header-rows: 1 |
92 | 99 |
|
93 | 100 | * - Name |
94 | 101 | - Description |
95 | | - * - ``board/esp32h2-builtin.cfg`` |
96 | | - - Board configuration file for ESP32-H2 through built-in USB, includes target and adapter configuration. |
97 | | - * - ``board/esp32h2-ftdi.cfg`` |
98 | | - - Board configuration file for ESP32-H2 for via externally connected FTDI-based probe like ESP-Prog, includes target and adapter configuration. |
99 | | - * - ``target/esp32h2.cfg`` |
100 | | - - ESP32-H2 target configuration file. Can be used together with one of the ``interface/`` configuration files. |
| 102 | + * - ``board/esp32h4-builtin.cfg`` |
| 103 | + - Board configuration file for ESP32-H4 through built-in USB, includes target and adapter configuration. |
| 104 | + * - ``board/esp32h4-ftdi.cfg`` |
| 105 | + - Board configuration file for ESP32-H4 for via externally connected FTDI-based probe like ESP-Prog, includes target and adapter configuration. |
| 106 | + * - ``target/esp32h4.cfg`` |
| 107 | + - ESP32-H4 target configuration file. Can be used together with one of the ``interface/`` configuration files. |
101 | 108 | * - ``interface/esp_usb_jtag.cfg`` |
102 | | - - JTAG adapter configuration file for ESP32-H2. |
| 109 | + - JTAG adapter configuration file for ESP32-H4. |
103 | 110 | * - ``interface/ftdi/esp_ftdi.cfg`` |
104 | 111 | - JTAG adapter configuration file for ESP-Prog boards. |
105 | 112 |
|
|
113 | 120 |
|
114 | 121 | .. jtag-pins |
115 | 122 |
|
116 | | -.. list-table:: ESP32-H2 pins and JTAG signals |
| 123 | +.. list-table:: ESP32-H4 pins and JTAG signals |
117 | 124 | :widths: 25 75 |
118 | 125 | :header-rows: 1 |
119 | 126 |
|
120 | | - * - ESP32-H2 Pin |
| 127 | + * - ESP32-H4 Pin |
121 | 128 | - JTAG Signal |
122 | | - * - MTDO / GPIO3 |
| 129 | + * - MTDO / GPIO31 |
123 | 130 | - TDO |
124 | | - * - MTDI / GPIO5 |
| 131 | + * - MTDI / GPIO29 |
125 | 132 | - TDI |
126 | | - * - MTCK / GPIO4 |
| 133 | + * - MTCK / GPIO30 |
127 | 134 | - TCK |
128 | | - * - MTMS / GPIO2 |
| 135 | + * - MTMS / GPIO28 |
129 | 136 | - TMS |
130 | 137 |
|
131 | | -.. |jtag-sel-gpio| replace:: GPIO25 |
132 | | -.. |jtag-gpio-list| replace:: GPIO2-GPIO5 |
| 138 | +.. |jtag-sel-gpio| replace:: GPIO36 |
| 139 | +.. |jtag-gpio-list| replace:: GPIO28-GPIO31 |
133 | 140 |
|
134 | 141 | --- |
135 | 142 |
|
136 | 143 | .. run-openocd-d3 |
137 | 144 |
|
138 | 145 | :: |
139 | 146 |
|
140 | | - openocd -l openocd_log.txt -d3 -f board/esp32h2-builtin.cfg |
| 147 | + openocd -l openocd_log.txt -d3 -f board/esp32h4-builtin.cfg |
141 | 148 |
|
142 | 149 | --- |
143 | 150 |
|
144 | 151 | .. run-openocd-d3-tee |
145 | 152 |
|
146 | 153 | :: |
147 | 154 |
|
148 | | - openocd -d3 -f board/esp32h2-builtin.cfg 2>&1 | tee openocd.log |
| 155 | + openocd -d3 -f board/esp32h4-builtin.cfg 2>&1 | tee openocd.log |
149 | 156 |
|
150 | 157 | --- |
151 | 158 |
|
|
159 | 166 |
|
160 | 167 | .. devkit-defs |
161 | 168 |
|
162 | | -.. |devkit-name| replace:: ESP32-H2 |
163 | | -.. |devkit-name-with-link| replace:: :doc:`ESP32-H2 <../../hw-reference/index>` |
| 169 | +.. |devkit-name| replace:: ESP32-H4 |
| 170 | +.. |devkit-name-with-link| replace:: :doc:`ESP32-H4 <../../hw-reference/index>` |
164 | 171 |
|
165 | 172 | --- |
166 | 173 |
|
167 | 174 | .. devkit-hw-config |
168 | 175 |
|
169 | | -* Out of the box, ESP32-H2 doesn't need any additional hardware configuration for JTAG debugging. |
| 176 | +* Out of the box, ESP32-H4 doesn't need any additional hardware configuration for JTAG debugging. |
170 | 177 |
|
171 | 178 | --- |
0 commit comments