Documentation: Update openocd-esp32 command for all Espressif Socs
This updated the command used for running the openocd-esp32 for all the supported Espressif's SoCs. It enables using SW-defined breakpoints. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit is contained in:
parent
956915ff97
commit
ca664fd431
6 changed files with 42 additions and 6 deletions
|
|
@ -209,7 +209,13 @@ GND Ground
|
|||
|
||||
OpenOCD can then be used::
|
||||
|
||||
openocd -c 'set ESP_RTOS hwthread; set ESP_FLASH_SIZE 0' -f board/esp32c3-builtin.cfg
|
||||
openocd -s <tcl_scripts_path> -c 'set ESP_RTOS hwthread' -f board/esp32c3-builtin.cfg -c 'init; reset halt; esp appimage_offset 0x0'
|
||||
|
||||
.. note::
|
||||
- ``appimage_offset`` should be set to ``0x0`` when ``Simple Boot`` is used. For MCUboot, this value should be set to
|
||||
``CONFIG_ESPRESSIF_OTA_PRIMARY_SLOT_OFFSET`` value (``0x10000`` by default).
|
||||
- ``-s <tcl_scripts_path>`` defines the path to the OpenOCD scripts. Usually set to `tcl` if running openocd from its source directory.
|
||||
It can be omitted if `openocd-esp32` were installed in the system with `sudo make install`.
|
||||
|
||||
If you want to debug with an external JTAG adapter it can
|
||||
be connected as follows:
|
||||
|
|
|
|||
|
|
@ -200,7 +200,13 @@ USB-to-JTAG adapter.
|
|||
|
||||
OpenOCD can then be used::
|
||||
|
||||
openocd -c 'set ESP_RTOS hwthread; set ESP_FLASH_SIZE 0' -f board/esp32c6-builtin.cfg
|
||||
openocd -s <tcl_scripts_path> -c 'set ESP_RTOS hwthread' -f board/esp32c3-builtin.cfg -c 'init; reset halt; esp appimage_offset 0x0'
|
||||
|
||||
.. note::
|
||||
- ``appimage_offset`` should be set to ``0x0`` when ``Simple Boot`` is used. For MCUboot, this value should be set to
|
||||
``CONFIG_ESPRESSIF_OTA_PRIMARY_SLOT_OFFSET`` value (``0x10000`` by default).
|
||||
- ``-s <tcl_scripts_path>`` defines the path to the OpenOCD scripts. Usually set to `tcl` if running openocd from its source directory.
|
||||
It can be omitted if `openocd-esp32` were installed in the system with `sudo make install`.
|
||||
|
||||
If you want to debug with an external JTAG adapter it can
|
||||
be connected as follows:
|
||||
|
|
|
|||
|
|
@ -201,7 +201,13 @@ USB-to-JTAG adapter.
|
|||
|
||||
OpenOCD can then be used::
|
||||
|
||||
openocd -c 'set ESP_RTOS hwthread; set ESP_FLASH_SIZE 0' -f board/esp32h2-builtin.cfg
|
||||
openocd -s <tcl_scripts_path> -c 'set ESP_RTOS hwthread' -f board/esp32c3-builtin.cfg -c 'init; reset halt; esp appimage_offset 0x0'
|
||||
|
||||
.. note::
|
||||
- ``appimage_offset`` should be set to ``0x0`` when ``Simple Boot`` is used. For MCUboot, this value should be set to
|
||||
``CONFIG_ESPRESSIF_OTA_PRIMARY_SLOT_OFFSET`` value (``0x10000`` by default).
|
||||
- ``-s <tcl_scripts_path>`` defines the path to the OpenOCD scripts. Usually set to `tcl` if running openocd from its source directory.
|
||||
It can be omitted if `openocd-esp32` were installed in the system with `sudo make install`.
|
||||
|
||||
If you want to debug with an external JTAG adapter it can
|
||||
be connected as follows:
|
||||
|
|
|
|||
|
|
@ -241,7 +241,13 @@ described for the :ref:`ESP32-DevKitC <platforms/xtensa/esp32/boards/esp32-devki
|
|||
|
||||
OpenOCD can then be used::
|
||||
|
||||
openocd -c 'set ESP_RTOS hwthread; set ESP_FLASH_SIZE 0' -f board/esp32-wrover-kit-1.8v.cfg
|
||||
openocd -s <tcl_scripts_path> -c 'set ESP_RTOS hwthread' -f board/esp32-wrover-kit-3.3v.cfg -c 'init; reset halt; esp appimage_offset 0x1000'
|
||||
|
||||
.. note::
|
||||
- ``appimage_offset`` should be set to ``0x1000`` when ``Simple Boot`` is used. For MCUboot, this value should be set to
|
||||
``CONFIG_ESP32_OTA_PRIMARY_SLOT_OFFSET`` value (``0x10000`` by default).
|
||||
- ``-s <tcl_scripts_path>`` defines the path to the OpenOCD scripts. Usually set to `tcl` if running openocd from its source directory.
|
||||
It can be omitted if `openocd-esp32` were installed in the system with `sudo make install`.
|
||||
|
||||
Once OpenOCD is running, you can use GDB to connect to it and debug your application::
|
||||
|
||||
|
|
|
|||
|
|
@ -231,7 +231,13 @@ directly to the ESP32-S2 JTAG pins.
|
|||
|
||||
OpenOCD can then be used::
|
||||
|
||||
openocd -c 'set ESP_RTOS hwthread; set ESP_FLASH_SIZE 0' -f board/esp32s2-kaluga-1.cfg
|
||||
openocd -s <tcl_scripts_path> -c 'set ESP_RTOS hwthread' -f board/esp32s2-kaluga-1.cfg -c 'init; reset halt; esp appimage_offset 0x1000'
|
||||
|
||||
.. note::
|
||||
- ``appimage_offset`` should be set to ``0x1000`` when ``Simple Boot`` is used. For MCUboot, this value should be set to
|
||||
``CONFIG_ESPRESSIF_OTA_PRIMARY_SLOT_OFFSET`` value (``0x10000`` by default).
|
||||
- ``-s <tcl_scripts_path>`` defines the path to the OpenOCD scripts. Usually set to `tcl` if running openocd from its source directory.
|
||||
It can be omitted if `openocd-esp32` were installed in the system with `sudo make install`.
|
||||
|
||||
Once OpenOCD is running, you can use GDB to connect to it and debug your application::
|
||||
|
||||
|
|
|
|||
|
|
@ -227,7 +227,13 @@ This is the case for the :ref:`ESP32-S3-DevKit <platforms/xtensa/esp32s3/boards/
|
|||
|
||||
OpenOCD can then be used::
|
||||
|
||||
openocd -c 'set ESP_RTOS hwthread; set ESP_FLASH_SIZE 0' -f board/esp32s3-builtin.cfg
|
||||
openocd -s <tcl_scripts_path> -c 'set ESP_RTOS hwthread' -f board/esp32s3-builtin.cfg -c 'init; reset halt; esp appimage_offset 0x0'
|
||||
|
||||
.. note::
|
||||
- ``appimage_offset`` should be set to ``0x0`` when ``Simple Boot`` is used. For MCUboot, this value should be set to
|
||||
``CONFIG_ESP32S3_OTA_PRIMARY_SLOT_OFFSET`` value (``0x10000`` by default).
|
||||
- ``-s <tcl_scripts_path>`` defines the path to the OpenOCD scripts. Usually set to `tcl` if running openocd from its source directory.
|
||||
It can be omitted if `openocd-esp32` were installed in the system with `sudo make install`.
|
||||
|
||||
Once OpenOCD is running, you can use GDB to connect to it and debug your application::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue