mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/esp32-wrover-kit: Add openocd config and docs
This commit is contained in:
parent
cbfe502cc6
commit
8b467534fe
@ -3,4 +3,8 @@ PSEUDOMODULES += esp32_wrover_kit_camera
|
||||
# configure the serial interface
|
||||
PORT_LINUX ?= /dev/ttyUSB1
|
||||
|
||||
ifneq (,$(filter esp_jtag,$(USEMODULE)))
|
||||
OPENOCD_CONFIG ?= board/esp32-wrover-kit-3.3v.cfg
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/esp32/Makefile.include
|
||||
|
@ -289,6 +289,25 @@ convenient way for On-Chip debugging. Please refer the
|
||||
[ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/index.html)
|
||||
for details on how to setup and how to use ESP-WROVER-KIT and OpenOCD.
|
||||
|
||||
To use the JTAG interface, the `esp_jtag` module must be enabled.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
USEMODULE+=esp_jtag make flash BOARD=esp32-wrover-kit ...
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
To flash using OpenOCD, install the [openocd-esp32](https://github.com/espressif/openocd-esp32) fork.
|
||||
The OpenOCD configuration selected by default is for using JTAG via the FTDI chip.
|
||||
Export where openocd is located and then flash with PROGRAMMER set:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
export OPENOCD="~/openocd-esp32/src/openocd -s ~/openocd-esp32/tcl"
|
||||
PROGRAMMER=openocd USEMODULE+=esp_jtag make flash BOARD=esp32-wrover-kit
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
To start a debugging session (board will be reset, but not flashed):
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
export OPENOCD="~/openocd-esp32/src/openocd -s ~/openocd-esp32/tcl"
|
||||
PROGRAMMER=openocd USEMODULE+=esp_jtag make debug BOARD=esp32-wrover-kit
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
[Back to table of contents](#esp32_wrover_kit_toc)
|
||||
|
||||
## Other Documentation Resources {#esp32_wrover_kit_other-resources}
|
||||
|
Loading…
Reference in New Issue
Block a user