This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SIMPLELINK-OPENOCD: Unable to make SIMPLELINK-OPENOCD

Part Number: SIMPLELINK-OPENOCD

Hello,

I installed TI-s SIMPLELINK-OPENOCD both from the git repository (http://git.ti.com/sdo-emu/openocd) and from the direct link : http://www.ti.com/tool/SIMPLELINK-OPENOCD.

I am using a Macbook Pro with MacOS Mojave. 

I follow the steps given : first, for macos I install openocd with the "brew install --HEAD openocd" command.

I then go into the openocd root folder, and say "./configure" which apparently succeeds.

checking for makeinfo... makeinfo
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking for ranlib... ranlib
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.23... yes
checking build system type... x86_64-apple-darwin18.6.0
checking host system type... x86_64-apple-darwin18.6.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/local/opt/binutils/bin/nm -B
checking the name lister (/usr/local/opt/binutils/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin18.6.0 file names to x86_64-apple-darwin18.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin18.6.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/local/opt/binutils/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin18.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for an ANSI C-conforming const... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for library containing ioperm... no
checking for library containing dlopen... none required
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/stat.h... (cached) yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for arpa/inet.h... yes
checking for ifaddrs.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking for net/if.h... yes
checking whether to enable assertions... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for strndup... yes
checking for strnlen... yes
checking for gettimeofday... yes
checking for usleep... yes
checking for vasprintf... yes
checking for realpath... yes
checking whether to build a release... yes
checking whether to build Doxygen as HTML... yes
checking whether to build Doxygen as PDF... no
checking whether to enable verbose JTAG I/O messages... no
checking whether to enable verbose USB I/O messages... no
checking whether to enable verbose USB communication messages... no
checking whether to enable malloc free space logging... no
checking whether to enable ZY1000 minidriver... no
checking whether to enable dummy minidriver... no
checking whether standard drivers can be built... yes
checking for LIBUSB1... yes
configure: libusb-1.0 header bug workaround: LIBUSB1_CFLAGS changed to "-isystem /usr/local/Cellar/libusb/1.0.23/include/libusb-1.0"
checking for LIBUSB0... yes
checking for HIDAPI... yes
checking for LIBFTDI... yes
checking for LIBJAYLINK... no
checking for environ in unistd.h and stdlib.h... no
checking for extern environ... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in jimtcl (/Users/sramnath/git-ti-openocd/openocd/openocd/jimtcl)
configure: running /bin/sh ./configure.gnu --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
./configure.gnu: line 1: -e: command not found
Host System...x86_64-apple-darwin18.6.0
Build System...x86_64-apple-darwin18.6.0
C compiler...ccache cc -g -O2
C++ compiler...ccache c++ -g -O2
Build C compiler...cc
Checking for stdlib.h...ok
Checking for long long...ok
Checking for sys/time.h...ok
Checking for sys/socket.h...ok
Checking for netinet/in.h...ok
Checking for arpa/inet.h...ok
Checking for netdb.h...ok
Checking for sys/un.h...ok
Checking for dlfcn.h...ok
Checking for unistd.h...ok
Checking for dirent.h...ok
Checking for crt_externs.h...ok
Checking libs for inet_ntop...none needed
Checking libs for socket...none needed
Checking for ualarm...ok
Checking for lstat...ok
Checking for fork...ok
Checking for vfork...ok
Checking for system...ok
Checking for select...ok
Checking for execvpe...not found
Checking for backtrace...ok
Checking for geteuid...ok
Checking for mkstemp...ok
Checking for realpath...ok
Checking for strptime...ok
Checking for isatty...ok
Checking for regcomp...ok
Checking for waitpid...ok
Checking for sigaction...ok
Checking for sys_signame...ok
Checking for sys_siglist...ok
Checking for isascii...ok
Checking for syslog...ok
Checking for opendir...ok
Checking for readlink...ok
Checking for sleep...ok
Checking for usleep...ok
Checking for pipe...ok
Checking for getaddrinfo...ok
Checking for utimes...ok
Checking for shutdown...ok
Checking for socketpair...ok
Checking for isinf...ok
Checking for isnan...ok
Checking for link...ok
Checking for symlink...ok
Checking for fsync...ok
Checking for dup...ok
Checking for sysinfo...not found
Checking for struct flock...ok
Checking for sys/types.h...(cached) ok
Checking if -D_FILE_OFFSET_BITS=64 is needed...no
Checking for fseeko...ok
Checking for ftello...ok
Checking for _NSGetEnviron...ok
Checking for sys/types.h...(cached) ok
Checking for sys/stat.h...ok
Checking for mkdir with one arg...no
Checking for termios.h...ok
Enabling line editing
Enabling references
Building static library
Extension eventloop...enabled
Extension array...enabled
Extension clock...enabled
Extension regexp...enabled
Extension stdlib...enabled
Extension tclcompat...enabled
Using built-in regexp
Jim static extensions: array clock eventloop regexp stdlib tclcompat
Created jim-config.h
Created jimautoconf.h
Created Makefile from Makefile.in
Created build-jim-ext from build-jim-ext.in
=== configuring in src/jtag/drivers/libjaylink (/Users/sramnath/git-ti-openocd/openocd/openocd/src/jtag/drivers/libjaylink)
configure: running /bin/sh ./configure.gnu --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
./configure.gnu: line 1: -e: command not found
checking build system type... x86_64-apple-darwin18.6.0
checking host system type... x86_64-apple-darwin18.6.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/local/opt/binutils/bin/nm -B
checking the name lister (/usr/local/opt/binutils/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin18.6.0 file names to x86_64-apple-darwin18.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin18.6.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/local/opt/binutils/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin18.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libusb... yes
checking whether byte ordering is bigendian... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libjaylink/Makefile
config.status: creating libjaylink/version.h
config.status: creating libjaylink.pc
config.status: creating Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

libjaylink configuration summary:
 - Package version ................ 0.1.0
 - Library version ................ 0:0:0
 - Installation prefix ............ /usr/local
 - Building on .................... x86_64-apple-darwin18.6.0
 - Building for ................... x86_64-apple-darwin18.6.0



OpenOCD configuration summary
--------------------------------------------------
MPSSE mode of FTDI based devices        yes (auto)
ST-Link JTAG Programmer                 yes (auto)
TI ICDI JTAG Programmer                 yes (auto)
Keil ULINK JTAG Programmer              yes (auto)
Altera USB-Blaster II Compatible        yes (auto)
Versaloon-Link JTAG Programmer          yes (auto)
TI XDS110 Debug Probe                   yes (auto)
OSBDM (JTAG only) Programmer            yes (auto)
eStick/opendous JTAG Programmer         yes (auto)
Andes JTAG Programmer                   yes (auto)
USBProg JTAG Programmer                 yes (auto)
Raisonance RLink JTAG Programmer        yes (auto)
Olimex ARM-JTAG-EW Programmer           yes (auto)
CMSIS-DAP Compliant Debugger            yes (auto)
Altera USB-Blaster Compatible           yes (auto)
ASIX Presto Adapter                     yes (auto)
OpenJTAG Adapter                        yes (auto)
SEGGER J-Link Programmer                yes (auto)

When I do make, sometimes I get the following output: 

Makefile:4283: warning: overriding commands for target `check-recursive'
Makefile:3696: warning: ignoring old commands for target `check-recursive'
 cd . && /bin/sh /Users/sramnath/git-ti-openocd/openocd/openocd/missing automake-1.15 --gnu
/Users/sramnath/git-ti-openocd/openocd/openocd/missing: line 81: automake-1.15: command not found
WARNING: 'automake-1.15' is missing on your system.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <www.gnu.org/.../automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <www.gnu.org/.../autoconf>
         <www.gnu.org/.../>
         <http://www.perl.org/>

(all the tools are installed)

or I get the following output: 

Makefile:4283: warning: overriding commands for target `check-recursive'
Makefile:3696: warning: ignoring old commands for target `check-recursive'
cat src/helper/startup.tcl src/jtag/startup.tcl src/target/startup.tcl src/server/startup.tcl src/flash/startup.tcl | ./src/helper/bin2char.sh > src/startup_tcl.inc || { rm -f src/startup_tcl.inc; false; }
cp src/jtag/drivers/minidriver_imp.h src/jtag/minidriver_imp.h
/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
Makefile:4283: warning: overriding commands for target `check-recursive'
Makefile:3696: warning: ignoring old commands for target `check-recursive'
Making all in jimtcl
/usr/bin/tclsh ./make-load-static-exts.tcl array clock eventloop regexp stdlib tclcompat >_load-static-exts.c || ( rm _load-static-exts.c; exit 1)
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o _load-static-exts.o _load-static-exts.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jim-subcmd.o jim-subcmd.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jim-interactive.o jim-interactive.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jim-format.o jim-format.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jim.o jim.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o utf8.o utf8.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jimregexp.o jimregexp.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o linenoise.o linenoise.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jim-array.o jim-array.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jim-clock.o jim-clock.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jim-eventloop.o jim-eventloop.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jim-regexp.o jim-regexp.c
/usr/bin/tclsh ./make-c-ext.tcl stdlib.tcl >_stdlib.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables  -c -o stdlib.o _stdlib.c
/usr/bin/tclsh ./make-c-ext.tcl tclcompat.tcl >_tclcompat.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables  -c -o tclcompat.o _tclcompat.c
ar cr libjim.a _load-static-exts.o jim-subcmd.o jim-interactive.o jim-format.o jim.o utf8.o jimregexp.o linenoise.o jim-array.o jim-clock.o jim-eventloop.o jim-regexp.o stdlib.o tclcompat.o
ranlib libjim.a
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -c -o jimsh.o jimsh.c
/usr/bin/tclsh ./make-c-ext.tcl initjimsh.tcl >_initjimsh.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables  -c -o initjimsh.o _initjimsh.c
ccache cc -Wall  -I. -g -O2 -fno-unwind-tables -fno-asynchronous-unwind-tables    -o jimsh jimsh.o initjimsh.o libjim.a  
ld: warning: ignoring file libjim.a, file was built for archive which is not the architecture being linked (x86_64): libjim.a
Undefined symbols for architecture x86_64:
  "_Jim_CreateInterp", referenced from:
      _main in jimsh.o
  "_Jim_Eval", referenced from:
      _main in jimsh.o
  "_Jim_EvalFile", referenced from:
      _main in jimsh.o
  "_Jim_EvalSource", referenced from:
      _Jim_initjimshInit in initjimsh.o
  "_Jim_FreeInterp", referenced from:
      _main in jimsh.o
  "_Jim_GetExitCode", referenced from:
      _main in jimsh.o
  "_Jim_InitStaticExtensions", referenced from:
      _main in jimsh.o
  "_Jim_InteractivePrompt", referenced from:
      _main in jimsh.o
  "_Jim_ListAppendElement", referenced from:
      _JimSetArgv in jimsh.o
  "_Jim_MakeErrorMessage", referenced from:
      _main in jimsh.o
  "_Jim_NewIntObj", referenced from:
      _main in jimsh.o
      _JimSetArgv in jimsh.o
  "_Jim_NewListObj", referenced from:
      _main in jimsh.o
      _JimSetArgv in jimsh.o
  "_Jim_NewStringObj", referenced from:
      _main in jimsh.o
      _JimSetArgv in jimsh.o
  "_Jim_PackageProvide", referenced from:
      _Jim_initjimshInit in initjimsh.o
  "_Jim_RegisterCoreCommands", referenced from:
      _main in jimsh.o
  "_Jim_SetVariableStr", referenced from:
      _main in jimsh.o
      _JimSetArgv in jimsh.o
  "_Jim_SetVariableStrWithStr", referenced from:
      _main in jimsh.o
  "_Jim_String", referenced from:
      _main in jimsh.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [jimsh] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Please help!

  • Try running aclocal from the openocd directory, then ./configure and make

  • I had tried this, but what helped was to use the correct version of ar and ranlib - 

    https://stackoverflow.com/questions/22107616/static-library-built-for-archive-which-is-not-the-architecture-being-linked-x86

    However, now that I'm able to make openocd, I am unable to connect to my target, getting the following errors : 

    Info : XDS110: connected
    Info : XDS110: firmware version = 3.0.0.2
    Info : XDS110: hardware version = 0x0023
    Info : XDS110: connected to target via JTAG
    Info : XDS110: TCK set to 2500 kHz
    Info : clock speed 2500 kHz
    Info : JTAG tap: cc13x2.jrc tap/device found: 0x7768205f (mfg: 0x02f (ACTEL), part: 0x7682, ver: 0x7)
    Warn : JTAG tap: cc13x2.jrc       UNEXPECTED: 0x7768205f (mfg: 0x02f (ACTEL), part: 0x7682, ver: 0x7)
    Error: JTAG tap: cc13x2.jrc  expected 1 of 1: 0x0bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x0)
    Info : TAP auto0.tap does not have IDCODE
    Error: Trying to use configured scan chain anyway...
    Error: cc13x2.jrc: IR capture error; saw 0x03 not 0x01
    Warn : Bypassing JTAG setup events due to errors
    Info : accepting 'gdb' connection on tcp/3333
    undefined debug reason 7 - target needs reset
    Error: Target not examined yet
    Error: Target not examined yet
    Error: Target not examined yet
    Error: Target not examined yet

    Or else 

    Open On-Chip Debugger 0.10.0
    Licensed under GNU GPL v2
    For bug reports, read
    	openocd.org/.../bugs.html
    Warn : Interface already configured, ignoring
    adapter speed: 2500 kHz
    srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
    adapter_nsrst_delay: 100
    Info : XDS110: connected
    Info : XDS110: firmware version = 3.0.0.2
    Info : XDS110: hardware version = 0x0023
    Info : XDS110: connected to target via JTAG
    Info : XDS110: TCK set to 2500 kHz
    Info : clock speed 2500 kHz
    Info : JTAG tap: cc13x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3)
    Info : JTAG tap: cc13x2.dap enabled
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Invalid ACK (4) in DAP response
    Error: Could not initialize the debug port

    Here's my command:

    src/openocd -s tcl/ -f interface/xds110.cfg -f board/ti_cc13x2_launchpad.cfg -c "gdb_memory_map disable" -c "init"

  • Try the following:

    src/openocd -s tcl/ -f interface/xds110.cfg -c "adatper_khz 1500" -c "transport select jtag" -f target/ti_cc13x2.cfg -c "gdb_memory_map disable" -c "init"

    Changes to the XDS110 firmware starting with version 3.0.0.0 require an update to the XDS110 interface code to handle properly.

    The old XDS110 upper limit was around 2.5 MHz; in the new firmware it is 14 MHz, and the OpenOCD code is currently trying to set the maximum which is much too fast for that board / target.

    We are working on an update to correct that.

  • HI Edward,

    Thanks for the command, I am now beyond the invalid ACK errors. I get the following message in openocd: 

    Open On-Chip Debugger 0.10.0
    Licensed under GNU GPL v2
    For bug reports, read
    	openocd.org/.../bugs.html
    adapter speed: 1500 kHz
    jtag
    srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
    adapter_nsrst_delay: 100
    Info : XDS110: connected
    Info : XDS110: firmware version = 3.0.0.2
    Info : XDS110: hardware version = 0x0023
    Info : XDS110: connected to target via JTAG
    Info : XDS110: TCK set to 2500 kHz
    Info : clock speed 1500 kHz
    Info : JTAG tap: cc13x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3)
    Info : JTAG tap: cc13x2.dap enabled
    Info : cc13x2.cpu: hardware has 6 breakpoints, 4 watchpoints'

    I am able to program the board with the command: 

    $ src/openocd -s tcl/ -f interface/xds110.cfg -c "adapter_khz 1500" -c "transport select jtag" -f target/ti_cc13x2.cfg -c "gdb_memory_map disable" -c "program /Users/sramnath/lwip_ethernetif/lwip/build/spimaster_CC1352P1_LAUNCHXL_tirtos_ccs.out"

    Now in order to be able to step through the program, I try using gdb.

    When I open gdb in another window, here's my command:

    $ sudo Downloads/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gdb -tui lwip_ethernetif/lwip/build/spimaster_CC1352P1_LAUNCHXL_tirtos_ccs.out 

    I then say in gdb,

    (gdb) target remote localhost:3333

    I get the following message in gdb:

    Remote debugging using localhost:3333
    0x00000000 in ti_sysbios_family_arm_m3_Hwi_resetVectors ()

    Then, when I try the load command in gdb, I get the following message: 

    (gdb) load

    Loading section .resetVecs, size 0x3c lma 0x0

    Loading section .text, size 0xe0bc lma 0x3c

    Load failed

    And the following message in openocd :

    Info : accepting 'gdb' connection on tcp/3333
    undefined debug reason 7 - target needs reset
    Error: JTAG-DP STICKY ERROR
    Error: Failed to write memory at 0x00000004
    Error: JTAG-DP STICKY ERROR
    Error: Failed to write memory at 0x00000040
    Info : dropped 'gdb' connection
    Info : accepting 'gdb' connection on tcp/3333
    undefined debug reason 7 - target needs reset
    Info : dropped 'gdb' connection
    Info : accepting 'gdb' connection on tcp/3333
    undefined debug reason 7 - target needs reset

    I used to get a message saying 'listening on port 3333 for gdb connections' which is how I knew to connect to port 3333 via gdb. 

    FYI, All jumpers around the XDS jumpers (TMS, TCK, TDO, TDI) are mounted. 

    I tried putting in the following commands in gdb: 

    (gdb) monitor reset

    (gdb) monitor halt

    This removed the "target needs a reset" message in openocd, but I still get JTAG-DP STICKY ERROR and failed to write memory at 0x000000004. I can apparently set a breakpoint at main but when I try to say 'continue', it says 'continuing.' and runs indefinitely. BTW I can see my source code. 

    Edit : if I set 'monitor reset halt' in gdb, instead of separately, I can now step through the code. Thanks for your help!

    Warm regards,

    Samyukta

**Attention** This is a public forum