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.

XDS560V2 Target connection problems

Hi,

I am a first time user with CCSV5 (sorry!). I have a project that properly compiles/links and need to connect to my target.

I am using a Spectrum Digitial XDS560V2 STM. The device has an ethernet port, and has obtained an ip. I cannot get CCSV5 to properly connect to the target.

Error initializing emulator:
(Error -2083 @ 0x0)
Unable to communicate with the emulator. Confirm emulator configuration and connections, reset the emulator, and retry the operation.
(Emulation package 5.0.872.0)

Here is my target config:

Some of the docs I read, suggested running dtc_conf.

I tried running this command : /opt/ti/ccsv5/ccs_base/common/uscif/dtc_conf get sd560v2e 172.31.1.122 and it has errors:

E_RPCENV_IO_ERROR(-6) No connection: Load of sd560v2e_io.so failed
ERROR: 14 : remote procedure call failed : failed to open the DTC configuration service for url sd560v2e:-1407254150

The IP is correct. I have a static mapping in the DHCP server, and I can ping the XDS560.

I then ran strace on the command and there seems to be MANY shared objects missing. Did I do something wrong in the install?

jlentz@builder:~$ strace /opt/ti/ccsv5/ccs_base/common/uscif/dtc_conf get sd560v2e 172.31.1.122
execve("/opt/ti/ccsv5/ccs_base/common/uscif/dtc_conf", ["/opt/ti/ccsv5/ccs_base/common/us"..., "get", "sd560v2e", "172.31.1.122"], [/* 21 vars */]) = 0
[ Process PID=14062 runs in 32 bit mode. ]
brk(0)                                  = 0x9cbf000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7767000
readlink("/proc/self/exe", "/opt/ti/ccsv5/ccs_base/common/uscif/dtc_conf", 4096) = 44
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/i686/sse2/cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/i686/sse2/cmov", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/i686/sse2/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/i686/sse2", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/i686/cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/i686/cmov", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/i686/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/i686", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/sse2/cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/sse2/cmov", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/sse2/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/sse2", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/cmov", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./tls", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./i686/sse2/cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./i686/sse2/cmov", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./i686/sse2/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./i686/sse2", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./i686/cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./i686/cmov", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./i686/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./i686", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./sse2/cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./sse2/cmov", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./sse2/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./sse2", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./cmov/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/./cmov", 0xffcc44e0) = -1 ENOENT (No such file or directory)
open("/opt/ti/ccsv5/ccs_base/common/uscif/./libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/ti/ccsv5/ccs_base/common/uscif/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
o

/opt/ti/ccsv5/ccs_base/common/uscif/dtc_conf get sd560v2e 172.31.1.122

  • Hi,

    A couple of things:

    Why are you specifying a custom board data file and not allowing it to generate one automatically? This could help overcome some configuration issues.

    The error messages of dtc_conf seem to indicate that the shared Linux library libpthread.so is missing. What do you see if you run ldd dtc_conf? You should see something like this:

    ldd_output said:

    user@host:/opt/CCSv5/ccs_5_4_0_00091/ccsv5/ccs_base/common/uscif$ ldd dtc_conf

    linux-gate.so.1 =>  (0xf7795000)
    libpthread.so.0 => /lib32/libpthread.so.0 (0xf7758000)
    libc.so.6 => /lib32/libc.so.6 (0xf75f8000)  
    librt.so.1 => /lib32/librt.so.1 (0xf75ee000)  
    libdl.so.2 => /lib32/libdl.so.2 (0xf75ea000)  
    libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf74f5000)  
    libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf74d6000)  /lib/ld-linux.so.2 (0xf7796000)  
    libm.so.6 => /lib32/libm.so.6 (0xf74b0000)

    user@host:/opt/CCSv5/ccs_5_4_0_00091/ccsv5/ccs_base/common/uscif$

    At last, did you run the install_script.sh at the end of the install? This is specially important if you installed CCS as user (I installed mine as root, though).

    Hope this helps,

    Rafael

     

  • Rafeal,

     

    Things looked so bleak - I reran the install this afternoon and it cleared things up.

     

    I don't understand what went wrong - but I am happy it's working.

     

    Jim