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.

Problem using External XDS510 Emulator in CCS5.3.0.00090 on Ubuntu 12.04 Environment

Hi,
I am using CCS5.3.0.00090 in ubuntu 12.04
I am trying to connect a target board (DSKDA830) through CCS5.3.0.00090, using external SD XDS510 JTAG Emulator to load a DSP image (*.out).
While connecting using external XDS510 USB EMULATOR,
I have selected SD XDS510 USB Emulator & DSKDA830 for the Connection & Board or Device correspondingly in Target configuration file (.ccxml). When giving Test Connection, I got the following error:
[Start]
Execute the command:
%ccs_base%/emulation/drivers/sdjtag -f %boarddatafile% -v -X reset -X scantest
[Result]
** BoardFilePath: /home/omprakash/.TI/3697551923/0/0/BrdDat/testBoard.dat
** Resetting Emulator
      >> USB Rules not installed
      >> Goto linux troubleshooting page for detailed instructions on installing USB Rules.
[End]
While connecting using onboard emulator in DA830,
If I select, TI XDS100v2 USB Emulator & DSKDA830 in the Target configuration, I get the following error.
[Start]
Execute the command:
%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity
[Result]
-----[Print the board config pathname(s)]------------------------------------
/home/omprakash/.TI/3697551923/0/0/BrdDat/
    testBoard.dat
-----[Print the reset-command software log-file]-----------------------------
This utility has selected a 100- or 510-class product.
This utility will load the adapter 'libjioserdesusb.so'.
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 '-151' (0xffffff69).
The title is 'SC_ERR_FTDI_OPEN'.
The explanation is:
One of the FTDI driver functions used during
the connect returned bad status or an error.
The cause may one or more of: invalid emulator serial number,
blank emulator EEPROM, missing FTDI drivers, faulty USB cable.
Use the xds100serial command-line utility in the 'common/uscif'
folder to verify the emulator can be located.
[End]
But, if I select SD XDS510 USB Emulator & DSKDA830 for using the Onboard emulator, the connection is established - which is not the expected case.
[Start]
Execute the command:
%ccs_base%/emulation/drivers/sdjtag -f %boarddatafile% -v -X reset -X scantest
[Result]
** BoardFilePath: /home/omprakash/.TI/3697551923/0/0/BrdDat/testBoard.dat
** Resetting Emulator
 -- Emulator is Reset
** Emulator Scan Test
 -- Found JTAG IR Length of 6
 -- Found 1 device(s) in the scan chain
[End]
Let me know, if I could select SD XDS510 USB Emulator for testing via onboard emulator. I guess, it is not the proper way around.
Also, why am I getting  "USB Rules not installed" error for SD XDS510 External Emulator. I have even followed the steps as mentioned in this doc. 
http://support.spectrumdigital.com/ccs40/xds560v2_stm/files/TechNote_11.pdf
But, the issue still exists.
NOTE:
There is no hardware issue with the SD XDS510 JTAG, because I did not face any issues, while testing using the same in Windows environment.
Thanks,
Jasmine Victoria.
 
  • Hi Jasmine,

    Jasmine Victoria said:
    I have selected SD XDS510 USB Emulator & DSKDA830 for the Connection & Board or Device correspondingly in Target configuration file (.ccxml). When giving Test Connection, I got the following error:
    [Start]
    Execute the command:
    %ccs_base%/emulation/drivers/sdjtag -f %boarddatafile% -v -X reset -X scantest
    [Result]
    ** BoardFilePath: /home/omprakash/.TI/3697551923/0/0/BrdDat/testBoard.dat
    ** Resetting Emulator
          >> USB Rules not installed
          >> Goto linux troubleshooting page for detailed instructions on installing USB Rules.
    [End]

    Did you run the script for installing the drivers?

    http://processors.wiki.ti.com/index.php/Linux_Host_Support#Installation_Instructions

    Jasmine Victoria said:
    But, if I select SD XDS510 USB Emulator & DSKDA830 for using the Onboard emulator, the connection is established - which is not the expected case.

    Actually the onboard emulator on the DSKDA830 is an XDS510 so it makes sense why that worked and not the one for XDS100

    Jasmine Victoria said:
    Let me know, if I could select SD XDS510 USB Emulator for testing via onboard emulator. I guess, it is not the proper way around.

    This should be fine. You could also select the "Spectrum Digital DSK-EVM PLUS onboard USB Emulator".

    Jasmine Victoria said:
    Also, why am I getting  "USB Rules not installed" error for SD XDS510 External Emulator. I have even followed the steps as mentioned in this doc. 
    http://support.spectrumdigital.com/ccs40/xds560v2_stm/files/TechNote_11.pdf

    Did the basic validation tests in the PDF pass?

    Thanks

    ki

  • Hi Ki,
    Thanks. My inlined answers for your suggestions are as follows:
    Did you run the script for installing the drivers?
    - I did not find any install_drivers.sh in the mentioned path in Ubuntu - CCS Installed directory (/ccsv5/install_scripts.)
    This should be fine. You could Emulator".also select the "Spectrum Digital DSK-EVM PLUS onboard USB Emulator".
    When I selected "Spectrum Digital DSK-EVM PLUS onboard USB Emulator", There was nothing listed under Board or Device in .ccxml config file in Ubuntu setup.
    But, In Windows (CCS V5.2), I was able to select the "Spectrum Digital DSK-EVM PLUS onboard USB Emulator", for onboard Emulator and it seemed to work fine.
    Did the basic validation tests in the PDF pass?
    No, I am getting the "USB Rules not installed" error. So, I followed the Troubleshooting steps in the same doc. But, it did not work through.
    Thanks,
    Jasmine Victoria.

     

  • Jasmine Victoria said:
    - I did not find any install_drivers.sh in the mentioned path in Ubuntu - CCS Installed directory (/ccsv5/install_scripts.)

    That's odd. It should be there. I see them inside my 5.3.0 installation on my Ubuntu machine. Perhaps you had a bad install.

    Jasmine Victoria said:
    When I selected "Spectrum Digital DSK-EVM PLUS onboard USB Emulator", There was nothing listed under Board or Device in .ccxml config file in Ubuntu setup.
    But, In Windows (CCS V5.2), I was able to select the "Spectrum Digital DSK-EVM PLUS onboard USB Emulator", for onboard Emulator and it seemed to work fine.

    Oh, right. I don't think XDS510 on-board emulators are supported by CCS on Linux.

    Jasmine Victoria said:
    No, I am getting the "USB Rules not installed" error. So, I followed the Troubleshooting steps in the same doc. But, it did not work through.

    I suspect it is because of the first issue. You may want to try a full install. If you have root access, even better.

    ki