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.

CODECOMPOSER: Why does XDS560 connect failedly in linux but success in windows

Part Number: CODECOMPOSER

1.Test connection in linux(Virtualbox ubuntu22) always have following log:

This utility has selected a 560/2xx-class product.
This utility will load the program 'sd560v2u.out'.
E_RPCENV_IO_ERROR(-6) No connection: E_RPCENV_IO_ERROR(-6)
Download failed for file /home/lxxm/ti/ccs1230/ccs/ccs_base/common/uscif/./xds560v2.out

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.

2.But in windows,it connect successfully.

  • Hi Kingphy,

    Thank you for your query.

    The above logs comes when the connection is not done properly.

    But in windows,it connect successfully.

    If it is working fine on windows but not on Virtual Box then it is something to do with the virtual box settings.

    Can you please check the USB settings of virtual box under menu devices. Please check whether the debugger and USB drivers are enabled to be used inside the virtual box?

    Please see the below screenshot.

    If drivers are missing you can install it by executing install_drivers.sh located at {CCS Dir}/ccs/install_scripts/install_drivers.sh.

    Regards,

    Tushar

  • Hi,Thank you for you response.

    I have setting VM usb device ,but it still can not connect.

    2. And Also ubuntu seem to identify the SPETRUM XDS560:

  • Hi Kingphy,

    Thank you for your response.

    Can you please run the script install_drivers.sh and try again?

    path of script :- {CCS Dir}/ccs/install_scripts/install_drivers.sh

    Please run the above script with admin privileges.

    For more info please refer ccsv12_linux_host_support .

    Thanks & Regards,

    Tushar

  • TI permissions file installation completed successfully. Some distros of Linux
    may require a reboot in order for the driver to function properly. For other
    distros, restarting udev is sufficient. Restarting udev now ...
    bh usb560 installation completed successfully. Some versions of Linux
    require a reboot in order for the driver to function properly. For other
    versions restarting udev is sufficient. Restarting udev now ...
    Uninstalling /etc/udev/rules.d/99-jlink.rules
    JLink installation completed successfully. Some versions of Linux
    require a reboot in order for the driver to function properly. For other
    versions restarting udev is sufficient. Restarting udev now ...

    THEN it still as following:

    his utility has selected a 560/2xx-class product.
    This utility will load the program 'sd560v2u.out'.
    E_RPCENV_IO_ERROR(-6) No connection: E_RPCENV_IO_ERROR(-6)
    Download failed for file /home/lxxm/ti/ccs1230/ccs/ccs_base/common/uscif/./xds560v2.out

    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: Spectrum Digital XDS560V2 STM USB Emulator_0]

  • Hi Kingphy,

    Thank you for your response.

    Have you rebooted the system after running the script?

    Can you please check for the possible cause of above error in ccs-host-connection-error guide. A similar issue has been encountered and had resolved by  running the install_drivers.sh script. Please refer e2e xds560v2-connection-test-failing-with-following-errors 

    Can you please check it once on Linux PC instead of virtual machine? 

    Can you please share the .ccxml file?

    Regards,

    Tushar

  • I have reboot the machine.

    Here is my ccxml content.As follow:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <configurations XML_version="1.2" id="configurations_0">


    <configuration XML_version="1.2" id="Spectrum Digital XDS560V2 STM USB Emulator_0">

    <instance XML_version="1.2" desc="Spectrum Digital XDS560V2 STM USB Emulator_0" href="connections/SD560V2USB_Connection.xml" id="Spectrum Digital XDS560V2 STM USB Emulator_0" xml="SD560V2USB_Connection.xml" xmlpath="connections"/>

    <connection XML_version="1.2" id="Spectrum Digital XDS560V2 STM USB Emulator_0">

    <instance XML_version="1.2" href="drivers/tixds560cs_dap.xml" id="drivers" xml="tixds560cs_dap.xml" xmlpath="drivers"/>

    <instance XML_version="1.2" href="drivers/tixds560cortexA53.xml" id="drivers" xml="tixds560cortexA53.xml" xmlpath="drivers"/>

    <instance XML_version="1.2" href="drivers/tixds560cortexM.xml" id="drivers" xml="tixds560cortexM.xml" xmlpath="drivers"/>

    <instance XML_version="1.2" href="drivers/tixds560cortexR.xml" id="drivers" xml="tixds560cortexR.xml" xmlpath="drivers"/>

    <instance XML_version="1.2" href="drivers/tixds560c75x.xml" id="drivers" xml="tixds560c75x.xml" xmlpath="drivers"/>

    <instance XML_version="1.2" href="drivers/tixds560csstm.xml" id="drivers" xml="tixds560csstm.xml" xmlpath="drivers"/>

    <instance XML_version="1.2" href="drivers/tixds560ctset2.xml" id="drivers" xml="tixds560ctset2.xml" xmlpath="drivers"/>

    <instance XML_version="1.2" href="drivers/tixds560etbcs.xml" id="drivers" xml="tixds560etbcs.xml" xmlpath="drivers"/>

    <property Type="choicelist" Value="2" id="JTAG TCLK Frequency (MHz)">
    <choice Name="Automatic with user specified limit" value="automatic">
    <property Type="stringfield" Value="3MHz" id="-- Enter a value from 0.50MHz to 64.0MHz"/>
    </choice>
    </property>
    <property Type="choicelist" Value="2" id="portAddr1"/>
    <property Type="choicelist" Value="1" id="The cJTAG Converter Features">
    <choice Name="Generate 1149.7 4-pin standard mode" value="enable">
    <property Type="choicelist" Value="1" id="The Converter 1149.7 Frequency Source"/>
    </choice>
    </property>
    <platform XML_version="1.2" id="platform_0">

    <instance XML_version="1.2" desc="AM62A_0" href="devices/AM62A.xml" id="AM62A_0" xml="AM62A.xml" xmlpath="devices"/>

    <device HW_revision="1" XML_version="1.2" description="AM62A" id="AM62A_0" partnum="AM62Ax" simulation="no">

    <router HW_revision="1.0" XML_version="1.2" description="CS_DAP Router" id="CS_DAP_0" isa="CS_DAP">

    <subpath id="A53SS0_CORE0">

    <cpu HW_revision="1.0" XML_version="1.2" desc="A53SS0_CORE0_0" description="A53SS0 A53 Core 0" deviceSim="false" id="CortexA53_0" isa="CortexA53"/>

    </subpath>

    <subpath id="A53SS0_CORE1">

    <cpu HW_revision="1.0" XML_version="1.2" desc="A53SS0_CORE1_0" description="A53SS0 A53 Core 1" deviceSim="false" id="CortexA53_1" isa="CortexA53"/>

    </subpath>

    <subpath id="A53SS0_CORE2">

    <cpu HW_revision="1.0" XML_version="1.2" desc="A53SS0_CORE2_0" description="A53SS0 A53 Core 2" deviceSim="false" id="CortexA53_2" isa="CortexA53"/>

    </subpath>

    <subpath id="A53SS0_CORE3">

    <cpu HW_revision="1.0" XML_version="1.2" desc="A53SS0_CORE3_0" description="A53SS0 A53 Core 3" deviceSim="false" id="CortexA53_3" isa="CortexA53"/>

    </subpath>

    <subpath id="SMS0_TIFS">

    <cpu HW_revision="1.0" XML_version="1.2" desc="SMS0_TIFS_0" description="SMS TIFS M4F CPU" deviceSim="false" id="SMS_CM4_0_TIFS" isa="Cortex_M4F"/>

    </subpath>

    <subpath id="SMS0_HSM">

    <cpu HW_revision="1.0" XML_version="1.2" desc="SMS0_HSM_0" description="SMS HSM M4F CPU" deviceSim="false" id="SMS_CM4_1_HSM" isa="Cortex_M4F"/>

    </subpath>

    <subpath id="MCU_R5FSS0">

    <cpu HW_revision="1.0" XML_version="1.2" desc="MCU_R5FSS0_0" description="MCU R5F CPU" deviceSim="false" id="MCUSS_Cortex_R5" isa="Cortex_R5"/>

    </subpath>

    <subpath id="WKUP_R5FSS0">

    <cpu HW_revision="1.0" XML_version="1.2" desc="WKUP_R5FSS0_0" description="WKUP R5F CPU" deviceSim="false" id="WKUP_Cortex_R5" isa="Cortex_R5"/>

    </subpath>

    <subpath id="C7XSS0">

    <cpu HW_revision="1.0" XML_version="1.2" desc="C7XSS0_0" description="C7XSS0 C75x CPU" deviceSim="false" id="C75X_0" isa="TMS320C75XX"/>

    </subpath>

    </router>

    </device>

    </platform>

    </connection>

    </configuration>

    </configurations>

  • Hi Kingphy,

    Thanks for sharing the content of .ccxml file. Please allow some time to check this and revert back.

    Regards,

    Tushar

  • Hi Kingphy,

    Can you please check it once on Linux PC instead of virtual machine?

    Have you tried the same steps on Linux PC?

    And Can you please share what was result of test connection when running it from virtual machine v/s Linux PC.

    Thanks & Regards,

    Tushar

  • I have not LINUX pc,BUT XDS110 i can connect it.

  • Hi Kingphy,

    Thanks for your response. 

    BUT XDS110 i can connect it.

    From the above comment, what I understand is that the XDS560v2 debugger can connect in windows but not on virtual machine. 

    But for the XDS110, you are able to connect on both windows and virtual machine. Correct me on the above understanding if I am wrong.

    If the above understanding is correct then may be some drivers needs to install on Virtual Machine for XDS560v2 debugger.

    Regards,

    Tushar

  • Yes.Your understanding is right.How can I install xds560v2 driver?

  • Hi Kingphy,

    Thank you for your response.

    Can you try updating the firmware once. Please follow the steps mentioned in updating-the-firmware to update the firmware.

    Please let me know if this works.

    Regards,

    Tushar

  • Hi.When i run the command,it report the following failure.

    ~/ti/ccs1230/ccs/ccs_base/common/uscif$ ./dtc_conf get sd560v2u 0
    E_RPCENV_IO_ERROR(-6) No connection: E_RPCENV_IO_ERROR(-6)
    ERROR: 14 : remote procedure call failed : failed to open the DTC configuration service for url sd560v2u:0

  • Hi,I found that it work ok in ubuntu18,but cannot in ubuntu22.Can you try it for me?Is there any dependency NG?

  • Hi Kingphy,

    Apologies for the delayed response.

    I found that it work ok in ubuntu18,but cannot in ubuntu22

    Thank you for providing additional details.

    Can you try it for me?Is there any dependency NG?

    Please allow some time to check this and revert back.

    Thanks & Regards,

    Tushar

  • E_RPCENV_IO_ERROR(-6) No connection: E_RPCENV_IO_ERROR(-6)

    Basically, CCS does not detect the SD XDDS560v2 probe so it cannot communicate with it.

    Hi,I found that it work ok in ubuntu18,but cannot in ubuntu22.Can you try it for me?Is there any dependency NG?

    The dependencies for CCS on Ubuntu 22 should be the same as with Ubuntu 18. I have used it CCS 12 with XDS560v2 successfully with Ubuntu 22. However, this was a native Ubuntu machine and not a VM. 

    Make sure you resolved all dependencies listed in the link below:

    https://software-dl.ti.com/ccs/esd/documents/ccsv12_linux_host_support.html

    You mentioned Ubuntu 18 worked fine. Is this also a VM on the same host machine?