Hello, all.
I'm trying to debug TI SensorTag (CC2650) from Eclipse under Linux 64-bit. My hw debugger is XDS110.
Here is what I have for the moment:
1. Debugging from Windows 64-bit using CCS is fine.
2. I'm able to flash device under Linux using uniflash.sh.
3. Eclipse under Linux enters debug mode successfully, but does not show the source code tab and does not automatically run to main(). When trying to "Run" application, Eclipse fails.
Here is my script to run GDB server:
$ cat sensortag-xds110-dbgsrv.sh #!/bin/bash pushd $(dirname $0) > /dev/null shdir=$(pwd) popd > /dev/null $UNIFLASH_ROOT/ccs_base/common/uscif/gdb_agent_console "$shdir/CC2650_XDS110_linux.dat"
And here is what I receive when run this script:
$ ./sensortag-xds110-dbgsrv.sh Successfully configured /home/tau/work/projects/ble/prj/aux/CC2650_XDS110_linux.dat CPU Name Port -------- ---- cortex_m3_0 :55000 Starting all cores CPU Name Status -------- ------ cortex_m3_0 Waiting for client
Then I'm trying to enter debug mode in Eclipse:
cortex_m3_0 Client connected...Connecting to Target cortex_m3_0 - Processor type =CORTEX_MXX (Little endian) cortex_m3_0 - Target device is connected Unable to load libctools.so, Hardware breakpoints not available. Target connected...Starting server ERROR: read_one_register() backend call returned 64 ERROR: read_one_register() backend call returned 64 ERROR: read_one_register() backend call returned 64 ERROR: read_one_register() backend call returned 64 ERROR: read_one_register() backend call returned 64 ERROR: read_one_register() backend call returned 64 ERROR: read_one_register() backend call returned 64 ERROR: read_one_register() backend call returned 64 ERROR: read_one_register() backend call returned 64
There are two questions here: where is libctools.so and what's wrong with read_one_register()?
Then I'm trying to "Run" my application:
FAILED! GTI_RUN_EX(hpid=0x9d894a0,runAttrFlag=0,count0)=-1 (Error -2134 @ 0x0) Unable to control device execution state. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.14.5)
And this looks weird for me.
Uniflash version is 3.4.0.00002.
GDB client by Launchpad:
$ arm-none-eabi-gdb -v GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.0.20150604-cvs
GDB initialization:
mem 0x00 0x20000 ro 32 nocache mem 0x10000000 0x10020000 ro 32 nocache mem 0x20000000 0x20005000 rw 32 nocache mem 0x40000000 0x400E1028 rw 32 nocache mem 0xE000E000 0xE000F000 rw 32 nocache target remote localhost:55000
Please, help.
Thank you.