Merge branch 'docs/openocd_cmd_line_fixup' into 'master'

docs: Fix up some OpenOCD cmdline-s

See merge request espressif/esp-idf!6814
This commit is contained in:
Anton Maklakov 2019-11-26 19:44:22 +08:00
commit 1dd2443758
3 changed files with 4 additions and 6 deletions

View File

@ -112,12 +112,11 @@ On startup, debugger is issuing sequence of commands to reset the chip and halt
Configuration of OpenOCD for specific target
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OpenOCD needs to be told what JTAG adapter **interface** to use, as well as what type of **board** and processor the JTAG adapter is connected to. To do so, use existing configuration files located in OpenOCD's ``share/openocd/scripts/interface`` and ``share/openocd/scripts/board`` folders.
OpenOCD needs to be told what JTAG adapter to use and processor the JTAG adapter is connected to. To do so, use existing **board** configuration files located in OpenOCD's ``share/openocd/scripts/board`` folder.
For example, if you connect to ESP-WROVER-KIT with ESP-WROOM-32 module installed (see section :ref:`esp-modules-and-boards-esp-wrover-kit-v1`), use the following configuration files:
* ``interface/ftdi/esp32_devkitj_v1.cfg``
* ``board/esp-wroom-32.cfg``
* ``board/esp32-wrover-kit-3.3v.cfg``
Optionally prepare configuration by yourself. To do so, you can check existing files and modify them to match you specific hardware. Below is the summary of available configuration parameters for **board** configuration.

View File

@ -166,7 +166,7 @@ JTAG 正常工作至少需要连接的信号线有TDITDOTCKTMS 和 G
Info : esp32: Core was reset (pwrstat=0x5F, after clear 0x0F).
- 如果出现指示权限问题的错误,请参阅 ``~/esp/openocd-esp32`` 目录下 OpenOCD README 文件中关于 “Permissions delegation” 的说明。
- 如果发现配置文件有错误,例如 ``Can't find interface/ftdi/esp32_devkitj_v1.cfg``,请检查 ``-s`` 后面的路径OpenOCD 会根据此路径来查找 ``-f`` 指定的文件。此外,还需要检查配置文件是否确实位于该路径下。
- 如果发现配置文件有错误,例如 ``Can't find board/esp32-wrover-kit-3.3v.cfg``,请检查 ``-s`` 后面的路径OpenOCD 会根据此路径来查找 ``-f`` 指定的文件。此外,还需要检查配置文件是否确实位于该路径下。
- 如果看到 JTAG 错误(输出全是 1 或者全是 0请检查硬件连接除了 ESP32 的引脚之外是否还有其他信号连接到了 JTAG并查看是否所有器件都已经上电。

View File

@ -115,8 +115,7 @@ OpenOCD 需要知道当前使用的 JTAG 适配器的类型,以及其连接的
例如,如果使用板载 ESP-WROOM-32 模组的 ESP-WROVER-KIT 开发板(详见 :ref:`esp-modules-and-boards-esp-wrover-kit-v1`),请使用以下配置文件:
* ``interface/ftdi/esp32_devkitj_v1.cfg``
* ``board/esp-wroom-32.cfg``
* ``board/esp32-wrover-kit-3.3v.cfg``
当然也可以使用自定义的配置文件,建议在已有配置文件的基础上进行修改,以匹配你的硬件。下面列举一些常用的板级配置参数。