From 34de90e632451e3481c8634b9b0a82291524977d Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 30 Mar 2020 13:23:52 +0900 Subject: [PATCH] esp32: Another OpenOCD example config --- boards/xtensa/esp32/esp32-core/README.txt | 22 +++++++++++++++++++ .../esp32/esp32-core/scripts/esp32-ft232h.cfg | 6 +++++ 2 files changed, 28 insertions(+) create mode 100644 boards/xtensa/esp32/esp32-core/scripts/esp32-ft232h.cfg diff --git a/boards/xtensa/esp32/esp32-core/README.txt b/boards/xtensa/esp32/esp32-core/README.txt index 04fecfae5d..ba24aabb8f 100644 --- a/boards/xtensa/esp32/esp32-core/README.txt +++ b/boards/xtensa/esp32/esp32-core/README.txt @@ -289,6 +289,28 @@ OpenOCD for the ESP32 need to specify the interface configuration file on the OpenOCD command line. + NOTE: Another OpenOCD configuration file is available in the NuttX + source tree at + nuttx/boards/xtensa/esp32/esp32-core/scripts/esp32-ft232h.cfg . + It has been tested with: + + - ESP32-DevKitC V4 + + https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-devkitc.html + + - Akizukidenshi's FT232H based JTAG adapter + + http://akizukidenshi.com/catalog/g/gK-06503/ + + - The following version of OpenOCD from ESP-IDF (macOS version) + + % openocd --version + Open On-Chip Debugger v0.10.0-esp32-20191114 (2019-11-14-14:19) + Licensed under GNU GPL v2 + For bug reports, read + http://openocd.org/doc/doxygen/bugs.html + % + General OpenOCD build instructions ---------------------------------- Installing OpenOCD. The sources for the ESP32-enabled variant of diff --git a/boards/xtensa/esp32/esp32-core/scripts/esp32-ft232h.cfg b/boards/xtensa/esp32/esp32-core/scripts/esp32-ft232h.cfg new file mode 100644 index 0000000000..52402c61ba --- /dev/null +++ b/boards/xtensa/esp32/esp32-core/scripts/esp32-ft232h.cfg @@ -0,0 +1,6 @@ +source [find interface/ftdi/um232h.cfg] +transport select jtag +adapter_khz 2000 +set ESP32_FLASH_VOLTAGE 3.3 +set ESP32_RTOS none +source [find target/esp32.cfg]