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.

Cannot Get BH XDS560v2 USB to work with Linux



CCS 5.1.0M5
Blackhawk XDS560v2

When I try to launch my configuration I see an error:

"Debugger Initialization Error

null."

Thoughts?  When I run "lsusb" I do not see any EWA device listed so I suspect something went wrong when using the lite installer.

  • Brad,

    Some questions that you probably know but I thought about asking anyways: :)
    - Before you run lsusb did you give some time (1~2min) for the emulator to boot? I kicked myself so many times because of that...
    - Did you connect the emulator with the provided USB cable with the dual ports for power boost? I once did this as well...
    - Is your target configuration set for Ethernet or USB? I did that before...
    - What happens if you run the script <CCS_INSTALL_DIR>/ccsv5/ccs_base/emulation/Blackhawk/Install/bh_driver_install.sh ?
    - What version of Linux are you running? What kernel version (check with uname -r)?

    Regards,
    Rafael

  • desouza said:
    - Did you connect the emulator with the provided USB cable with the dual ports for power boost? I once did this as well...

    Ok, this was definitely part of the issue.  Strange -- on Windows I have been using only a single port for a while and never had an issue.  For some reason it seems like you need the power boost for Linux.  Good to know.

    Unfortunately I'm still having some issues.  I see the following message down in the console window:

    Cannot read System Setup data from XML file /home/Brad/user/CCSTargetConfigurations/file.ccxml
    Unable to save System Setup Information, can't write to file

    If I go to that directory here are the permissions for that file:

    -rw-r--r-- Brad Brad

    I don't see the issue.  Looks like I have read/write permission.  Isn't Eclipse launching with my user permissions?

  • Brad,

    The USB ports on newer computers sometimes have a "Battery charging specification" that provides extra power to USB ports (check here and here), therefore that may be the case of your Windows host.

    The permissions listed in the .ccxml file seem ok, but can you check if you can edit the file from the command line? Also, what about the directory itself? Does user/CCSTargetConfigurations have drwxr-xr-x?

    I would also check the target XML files - go to directory <CCS_INSTALL_DIR>/ccsv5/ccs_base/common/targetdb and see if you have read permissions there...

    Hope this helps,

    Rafael

     

     

     

  • desouza said:
    The permissions listed in the .ccxml file seem ok, but can you check if you can edit the file from the command line? Also, what about the directory itself? Does user/CCSTargetConfigurations have drwxr-xr-x?

    Yes.

    desouza said:
    I would also check the target XML files - go to directory <CCS_INSTALL_DIR>/ccsv5/ccs_base/common/targetdb and see if you have read permissions there...

    drwxr-xr-x 12 root root 4096 2011-06-17 04:26 targetdb/

    Yes, there are read permissions.  FYI, when I did the installation I installed as "sudo" in order to install into /opt/ti/.  Hopefully that's not the reason for all my issues.  As a test I opened a command line to that directory and launched eclipse itself with "sudo".  It seems like it got further along, but I still see the following pop up in the command line:

    flxInitLoad: client has not been protected.
    flxInitLoad: client has not been protected.
    /usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
    E_RPCENV_IO_ERROR(-6) No connection: Emulator open error

  • Brad Griffis said:
    /usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so

    It seems like I'm still fighting 32-bit vs 64-bit issues.  The /usr/lib directory is a soft link to /usr/lib64 since I'm on Ubuntu 10.04 64-bit.  It seems to me that Eclipse/CCS should be referencing /usr/lib32 if a 32-bit version is required...

    So do we only provide 32-bit Eclipse in our downloads, including the lite installer?

    I'm about to try something drastically different.  I just installed the 64-bit version of Eclipse Indigo for C/C++ Developers.  I'm going to install it and then I'm going to install CCS on top...  If you have any hints or suggestions let me know soon.  :)

  • I couldn't get the Lite installer to even complete installing on top of my pre-installed 64-bit Eclipse.  It got into a loop where whatever component it was installing gave some kind of error, and then it just kept infinitely retrying.  I had to just kill it...

    I've since downloaded the full installation and I'm attempting to install that on top of my 64-bit Eclipse.  It seems that for every single component it says "Error: Existing installation".  Ugh... 

  • I've had some very moderate success.  I was able to launch a debug session under the following conditions:

    • I had to launch eclipse from the command line with 'sudo'
    • I have an XDS100v2 from Blackhawk that seems to work.

    It doesn't seem to work quite the way I hoped though.  There doesn't seem to be any symbolic debug!  I assume that's related to the ELFCLASS64 errors that I see when launching... 

  • My BH XDS560v2 is working fine with the latest M7 release.  For anyone else having issues there are some very helpful tips related to the installation here:

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