|
|
@@ -7,14 +7,13 @@
|
|
|
.. These code blocks can be moved back to the main .rst files, with target-specific
|
|
|
.. file names being replaced by substitutions.
|
|
|
|
|
|
-
|
|
|
.. run-openocd
|
|
|
|
|
|
::
|
|
|
|
|
|
- openocd -f board/Xcfg
|
|
|
+ openocd -f board/esp32c3-builtin.cfg
|
|
|
|
|
|
-.. |run-openocd-device-name| replace:: ESP32-S2-Kaluga-1 board
|
|
|
+.. |run-openocd-device-name| replace:: ESP32-C3 through built-in USB connection
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -22,21 +21,25 @@
|
|
|
|
|
|
::
|
|
|
|
|
|
- user-name@computer-name:~/esp/esp-idf$ openocd -f board/esp32s2-kaluga-1.cfg
|
|
|
- Open On-Chip Debugger v0.10.0-esp32-20200420 (2020-04-20-16:15)
|
|
|
+ user-name@computer-name:~/esp/esp-idf$ openocd -f board/esp32c3-builtin.cfg
|
|
|
+ Open On-Chip Debugger v0.10.0-esp32-20201202-26-g05a036c2 (2021-03-15-17:18)
|
|
|
Licensed under GNU GPL v2
|
|
|
For bug reports, read
|
|
|
- http://openocd.org/doc/doxygen/bugs.html
|
|
|
- none separate
|
|
|
- adapter speed: 20000 kHz
|
|
|
+ http://openocd.org/doc/doxygen/bugs.html
|
|
|
+ Info : only one transport option; autoselect 'jtag'
|
|
|
+ Warn : Transport "jtag" was already selected
|
|
|
force hard breakpoints
|
|
|
- Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
|
|
|
- Info : clock speed 20000 kHz
|
|
|
- Info : JTAG tap: esp32s2.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
|
|
|
- Info : esp32s2: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
|
|
|
- Info : esp32s2: Core was reset (pwrstat=0x5F, after clear 0x0F).
|
|
|
+ Info : Listening on port 6666 for tcl connections
|
|
|
+ Info : Listening on port 4444 for telnet connections
|
|
|
+ Info : esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255
|
|
|
+ Info : clock speed 40000 kHz
|
|
|
+ Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
|
|
|
+ Info : datacount=2 progbufsize=16
|
|
|
+ Info : Examined RISC-V core; found 1 harts
|
|
|
+ Info : hart 0: XLEN=32, misa=0x40101104
|
|
|
+ Info : Listening on port 3333 for gdb connections
|
|
|
|
|
|
-.. |run-openocd-cfg-file-err| replace:: ``Can't find board/esp32s2-kaluga-1.cfg``
|
|
|
+.. |run-openocd-cfg-file-err| replace:: ``Can't find board/esp32c3-builtin.cfg``
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -44,7 +47,7 @@
|
|
|
|
|
|
::
|
|
|
|
|
|
- openocd -f board/esp32s2-kaluga-1.cfg -c "program_esp filename.bin 0x10000 verify exit"
|
|
|
+ openocd -f board/esp32c3-builtin.cfg -c "program_esp filename.bin 0x10000 verify exit"
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -52,7 +55,7 @@
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
- src/openocd -f board/esp32s2-kaluga-1.cfg
|
|
|
+ src/openocd -f board/esp32c3-builtin.cfg
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -60,13 +63,13 @@
|
|
|
|
|
|
.. code-block:: batch
|
|
|
|
|
|
- src\openocd -f board/esp32s2-kaluga-1.cfg
|
|
|
+ src\openocd -f board/esp32c3-builtin.cfg
|
|
|
|
|
|
---
|
|
|
|
|
|
.. idf-py-openocd-default-cfg
|
|
|
|
|
|
-.. |idf-py-def-cfg| replace:: ``-f board/esp32s2-kaluga-1.cfg``
|
|
|
+.. |idf-py-def-cfg| replace:: ``-f board/esp32c3-builtin.cfg``
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -74,24 +77,26 @@
|
|
|
|
|
|
::
|
|
|
|
|
|
- openocd -f board/esp32s2-kaluga-1.cfg -c "init; halt; esp appimage_offset 0x210000"
|
|
|
+ openocd -f board/esp32c3-builtin.cfg -c "init; halt; esp appimage_offset 0x210000"
|
|
|
|
|
|
---
|
|
|
|
|
|
.. openocd-cfg-files
|
|
|
|
|
|
-.. list-table:: OpenOCD configuration files for ESP32-S2
|
|
|
+.. list-table:: OpenOCD configuration files for ESP32-C3
|
|
|
:widths: 25 75
|
|
|
:header-rows: 1
|
|
|
|
|
|
* - Name
|
|
|
- Description
|
|
|
- * - ``board/esp32s2-kaluga-1.cfg``
|
|
|
- - Board configuration file for ESP32-S2-Kaluga-1, includes target and adapter configuration.
|
|
|
- * - ``target/esp32s2.cfg``
|
|
|
- - ESP32-S2 target configuration file. Can be used together with one of the ``interface/`` configuration files.
|
|
|
- * - ``interface/ftdi/esp32s2_kaluga_v1.cfg``
|
|
|
- - JTAG adapter configuration file for ESP32-S2-Kaluga-1 board.
|
|
|
+ * - ``board/esp32c3-builtin.cfg``
|
|
|
+ - Board configuration file for ESP32-C3 through built-in USB, includes target and adapter configuration.
|
|
|
+ * - ``board/esp32c3-ftdi.cfg``
|
|
|
+ - Board configuration file for ESP32-C3 debug through an ESP-Prog compatible FTDI, includes target and adapter configuration.
|
|
|
+ * - ``target/esp32c3.cfg``
|
|
|
+ - ESP32-C3 target configuration file. Can be used together with one of the ``interface/`` configuration files.
|
|
|
+ * - ``interface/esp_usb_jtag.cfg``
|
|
|
+ - JTAG adapter configuration file for ESP32-C3.
|
|
|
* - ``interface/ftdi/esp32_devkitj_v1.cfg``
|
|
|
- JTAG adapter configuration file for ESP-Prog boards.
|
|
|
|
|
|
@@ -105,19 +110,19 @@
|
|
|
|
|
|
.. jtag-pins
|
|
|
|
|
|
-.. list-table:: ESP32-S2 pins and JTAG signals
|
|
|
+.. list-table:: ESP32-C3 pins and JTAG signals
|
|
|
:widths: 25 75
|
|
|
:header-rows: 1
|
|
|
|
|
|
- * - ESP32-S2 Pin
|
|
|
+ * - ESP32-C3 Pin
|
|
|
- JTAG Signal
|
|
|
- * - MTDO / GPIO40
|
|
|
+ * - MTDO / GPIO7
|
|
|
- TDO
|
|
|
- * - MTDI / GPIO41
|
|
|
+ * - MTDI / GPIO5
|
|
|
- TDI
|
|
|
- * - MTCK / GPIO39
|
|
|
+ * - MTCK / GPIO6
|
|
|
- TCK
|
|
|
- * - MTMS / GPIO42
|
|
|
+ * - MTMS / GPIO4
|
|
|
- TMS
|
|
|
|
|
|
---
|
|
|
@@ -126,7 +131,7 @@
|
|
|
|
|
|
::
|
|
|
|
|
|
- openocd -l openocd_log.txt -d3 -f board/esp32s2-kaluga-1.cfg
|
|
|
+ openocd -l openocd_log.txt -d3 -f board/esp32c3-builtin.cfg
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -134,7 +139,7 @@
|
|
|
|
|
|
::
|
|
|
|
|
|
- openocd -d3 -f board/esp32s2-kaluga-1.cfg 2>&1 | tee openocd.log
|
|
|
+ openocd -d3 -f board/esp32c3-builtin.cfg 2>&1 | tee openocd.log
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -142,19 +147,19 @@
|
|
|
|
|
|
::
|
|
|
|
|
|
- xtensa-esp32s2-elf-gdb -ex "set remotelogfile gdb_log.txt" <all other options>
|
|
|
+ riscv32-esp-elf-gdb -ex "set remotelogfile gdb_log.txt" <all other options>
|
|
|
|
|
|
---
|
|
|
|
|
|
.. devkit-defs
|
|
|
|
|
|
-.. |devkit-name| replace:: ESP-S2-Kaluga-1
|
|
|
-.. |devkit-name-with-link| replace:: :doc:`ESP-S2-Kaluga-1 <../../hw-reference/modules-and-boards>`
|
|
|
+.. |devkit-name| replace:: ESP32-C3
|
|
|
+.. |devkit-name-with-link| replace:: :doc:`ESP32-C3 <../../hw-reference/modules-and-boards>`
|
|
|
|
|
|
---
|
|
|
|
|
|
.. devkit-hw-config
|
|
|
|
|
|
-* Out of the box, ESP32-S2-Kaluga-1 doesn't need any additional hardware configuration for JTAG debugging. However if you are experiencing issues, check that switches 2-5 of the "JTAG" DIP switch block are in "ON" position.
|
|
|
+* Out of the box, ESP32-C3 doesn't need any additional hardware configuration for JTAG debugging.
|
|
|
|
|
|
---
|