Error attempting to use ti_cc26x0_launchpad.cfg

I am a relative OpenOCD newby so I apologise if the solution is simple.

OS:

Ubuntu 18.04.1 LTS.

Configure cmd:

configure --enable-xds110 --enable-cmsis-dap

Invocation and output:

$ openocd -f board/ti_cc26x0_launchpad.cfg

Open On-Chip Debugger 0.10.0+dev-00676-g346ce2f1 (2019-02-05-00:53)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

adapter speed: 2500 kHz

Error: The ‘jtag configure’ command must be used after ‘init’.

Using ‘debug_level’, I found the failing script line in target/ti_cc26x0.cfg, inserting debug_level before line 25:

debug_level 3

jtag configure $_CHIPNAME.cpu -event tap-enable “icepick_c_tapenable $_CHIPNAME.jrc 0”

gets the output:

$ openocd -f board/ti_cc26x0_launchpad.cfg

Open On-Chip Debugger 0.10.0+dev-00676-g346ce2f1 (2019-02-05-00:53)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

adapter speed: 2500 kHz

User : 16 6 command.c:544 command_print(): debug_level: 3

Debug: 17 6 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag configure cc26x0.cpu -event tap-enable icepick_c_tapenable cc26x0.jrc 0

Debug: 18 6 command.c:143 script_debug(): command - ocd_jtag ocd_jtag configure cc26x0.cpu -event tap-enable icepick_c_tapenable cc26x0.jrc 0

Error: 19 6 command.c:601 command_can_run(): The ‘jtag configure’ command must be used after ‘init’.

User : 20 6 command.c:715 command_run_line():

So, it would appear that the failing command is ‘jtag configure …’ at line 25 in target/ti_cc26x0.cfg is failing. This is part of the source so must have worked previously. What am I missing?

Hi,

what version are you using? I’ve downloaded the one off the TI website last week, and everything checks out on a CC13x0 (which uses the CC26x0 config). Not sure this will make a difference here, but my configure options also included --enable-openjtag.

Please check

https://sourceforge.net/p/openocd/tickets/225/

http://openocd.zylin.com/4886

Antonio

Antonio

Thanks for the links. The bug has been fixed in the git master and my install now works OK.

– Andy