Tool/software: Code Composer Studio
On macOS and Linux, I have difficulty connecting to the XDS200 emulator. I always receive the following output for the "Test Connection" step in CCS after setting up a target configuration file.
[Start: Texas Instruments XDS2xx USB Debug Probe_0]
Execute the command:
%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity
[Result]
-----[Print the board config pathname(s)]------------------------------------
/Users/chrisnc/.ti/ti/4/0/BrdDat/testBoard.dat
-----[Print the reset-command software log-file]-----------------------------
This utility has selected a 560/2xx-class product.
This utility will load the program 'xds2xxu.out'.
E_RPCENV_IO_ERROR(-6) No connection: DTC_IO_Open::dtc_io
Failed to open i/o connection (xds2xxu:0)
An error occurred while soft opening the controller.
-----[An error has occurred and this utility has aborted]--------------------
This error is generated by TI's USCIF driver or utilities.
The value is '-250' (0xffffff06).
The title is 'SC_ERR_ECOM_EMUNAME'.
The explanation is:
An attempt to access the debug probe via USCIF ECOM has failed.
[End: Texas Instruments XDS2xx USB Debug Probe_0]
When I try to find the devices corresponding to the emulator I see:
$ ls -l /dev/tty.usbmodem*
crw-rw-rw- 1 root wheel 21, 10 Sep 24 16:53 /dev/tty.usbmodem141420
crw-rw-rw- 1 root wheel 21, 12 Sep 24 16:53 /dev/tty.usbmodem6
These have the correct permissions (read/write by everybody), but still the tools can't connect.
I also tried connecting with the command-line xds2xx_conf utility:
$ ti/ccsv8/ccs_base/common/uscif/xds2xx/xds2xx_conf get xds2xxu 0
Error : Failed to open port connection : xds2xxu : 0
Error : test failed
I see these same problems also on Linux, and the permissions are also correct there:
$ ls -l /dev/ttyA*
crw-rw-rw- 1 root dialout 166, 0 Sep 24 17:29 /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 1 Sep 24 17:29 /dev/ttyACM1
On Linux the symptoms are slightly different; it hangs indefinitely when I run xds2xx_conf. Interestingly, while trying to debug this by running xds2xx_conf under strace to see what error the tool was encountering, it actually works and prints out the information from the get command! I've found no such workaround on macOS though. The debugger doesn't respond to CCS or the tool until I do this.