esp32.cfg have no "source [find interface/ftdi/tumpa.cfg]" line, for Openocd debugging

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

esp32.cfg have no "source [find interface/ftdi/tumpa.cfg]" line, for Openocd debugging

Postby wziy520 » Mon Dec 19, 2016 5:05 am

I want install openocd enable Segger Jlink, after make install Openocd, there esp32.cfg(/usr/local/share/openocd/target/esp32.cfg) have not the "source [find interface/ftdi/tumpa.cfg]",
The origin souce code directory folder have not this line also, please have a look.

Does the config file upgrade. but Doc not?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: esp32.cfg have no "source [find interface/ftdi/tumpa.cfg]" line, for Openocd debugging

Postby ESP_Angus » Mon Dec 19, 2016 5:13 am

Hi wziy520,

openocd separates the idea of an "interface" from a "target". TUMPA in this case is a type of interface (based around an FTDI chip) J-Link is a different type of interface. ESP32 is the target.

I think at one point tumpa.cfg was included from esp32.cfg, but this prevents you using other interfaces (like your J-Link) with the ESP32.

For Segger JLink, the command line will be something like this:

Code: Select all

openocd -f interface/jlink.cfg -f target/esp32.cfg
I don't jave a J-Link to test with, there may be additional interface-specific configuration commands required between these two.


Angus

Who is online

Users browsing this forum: No registered users and 99 guests