I've checked out the v0.11.0 branch and built openocd with the config parameters listed at the end. I've actually tried several different options, the one listed at the end is "everything I could find".
I've also reproduced this on the v0.10.0 that comes bundled with my OS (Ubuntu 20.04).
I've connected a FlySwatter2 to a 1294xl, but I get an error when trying to launch with:
$ openocd -f interface/ftdi/flyswatter2.cfg -f board/ti_ek-tm4c1294xl.cfg -c init
Open On-Chip Debugger 0.11.0-dirty (2022-03-15-11:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Interface already configured, ignoring
/usr/local/bin/../share/openocd/scripts/interface/ti-icdi.cfg:11: Error: invalid command name "hla_layout"
in procedure 'script'
at file "embedded:startup.tcl", line 26
at file "/usr/local/bin/../share/openocd/scripts/board/ti_ek-tm4c1294xl.cfg", line 7
at file "/usr/local/bin/../share/openocd/scripts/interface/ti-icdi.cfg", line 11
Configuration line:
$ ./configure --enable-dummy --enable-rshim --enable-ftdi --enable-stlink --enable-ti-icdi --enable-ulink --enable-usb-blaster-2 --enable-ft232r --enable-vsllink --enable-xds110 --enable-osbdm --enable-opendous --enable-aice --enable-usbprog --enable-rlink --enable-armjtagew --enable-usb-blaster --enable-presto --enable-openjtag --enable-jlink --enable-jtag_vpi --enable-jtag_dpi --enable-amtjtagaccel --enable-bcm2835gpio --enable-imx_gpio --enable-ep93xx --enable-at91rm9200 --enable-gw16012 --enable-buspirate --enable-sysfsgpio --enable-xlnx-pcie-xvc --enable-remote-bitbang
Hi,
On Wed, Mar 16, 2022 at 08:53:17PM -0000, Andrew Eidsness wrote:
This looks more like a support request, please consider writing to the
mailing list (-devel is fine) or asking on the IRC the next time.
The problem there is that you tell OpenOCD you're using a specific
evaluation board while in fact you're connecting an external JTAG
adapter directly to the target chip. So you should be sourcing the
target config rather than the board config.
HTH
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
Ah, thanks! I don't see a target config for this chip, but I think I can figure that out.
This ticket can probably be closed, but I don't see a button that lets me do that.
On Thu, Mar 17, 2022 at 11:27:23AM -0000, Andrew Eidsness wrote:
In board/ti_ek-tm4c1294xl.cfg you can see it's just sourcing
target/stellaris.cfg .
We'll close it later, thank you for caring.
I think that the stellaris configuration is for the on-board ICDI which is accessible over the board's serial port. I'm experimenting with using an external one. There are alot of good examples in that folder though. I might start with the stellaris one, then see what else I can do.
I don't know much about openocd, I'm mainly just experimenting to see what I can get to work.
Thanks for your help -- this should definitely have been a forum post instead, I'll followup there if I have any actual questions.
On Thu, Mar 17, 2022 at 03:43:46PM -0000, Andrew Eidsness wrote:
All configs in target/ directory are target configs, they do not
include the on-board ICDI or other on-board adapters. Stellaris is the
name of the original line-up, and it should work with your part.
I suggest you read the official User Manual while doing so.
No idea what forum you have in mind, I suggest using the mailing list
or our IRC channel, I do not read any forums.