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.

"Error initializing emulator" with Blackhawk XDS560v2 System Trace in CCSv5 on Linux

Other Parts Discussed in Thread: CCSTUDIO

I am running CCS v5.1.09000 under Ubuntu 10.04. The target I'm using is the C6472 EVM.


lsusb recognizes the device.

 

The Bh560v2Config utility passes fine, so is seems that the device drivers and Blackhawk CCS files are installed properly.

 

But, when attempting to connect to the device, CCS reports the following error:

"ICEPICK_C_0: Error initializing emulator: (Error -2085 @ 0x0) Internal error: Missing or corrupt application file. Restart the application. If error persists, please report the error. (Emulation package 5.0.520.0) "

I've tried re-installing CCS, I've tried this in v. 5.0.3 and on a different Ubuntu machine and the result is always the same.

I am able to use an SD XDS510 on the same setup with no issues.

 


  • Hello Anthony,

    Considering that the emulator is working (drivers are installed and you can scan data to/from your target using the Bh560v2Config utility), it leads me to beleive it is some kind of permission/installation issue.  We have tested our XDS560 and XDS560v2 products under CCS v5.1.0.09000 and Ubuntu 10.04.

    Have you seen this post? http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/137678.aspx

    Andrew

  • Anthony,

    Also see this post: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/139088.aspx, specifically regarding permissions on the ~/.TI folder.

  • Thanks for the replies. Those posts sound related and I hadn't seen them before. Unfortunately, changing the permissions in the .TI folder and even deleting it does not seem to resolve the problem. I still get the same error. 

    However, if I run CCS as sudo, I can connect to the JTAG. So, it must be a permissions error, but I don't know on what file. I installed CCS as sudo and did not need to change any of the ownership or permissions in the TI install directories to get CCS to run. I wonder if there is some file in that area that I need write permissions on but is owned by root based on the install.

  • I've tried to re-install CCS 5.1, create a new workspace and projects, and set the ownership of the entire CCS install directory to my user (plus those mentioned above in my home directory), but I still can only connect to the blackhawk if I run CCS as sudo.

    Any ideas of what other files might have a permission issue that would cause this?

  • Anthony,
     
    We ran multiple installations of Ubuntu 10.04 LTS and CCS v5.  Here is a summary of the steps after installing Ubuntu from DVD.  Steps 4 & 5 follow the TI CCS v5 quick start guide for Linux installations. 
     
    1.) Login as user, "blackhawk" created during installation of Ubuntu 10.04.
     
    2.) Extract CCS v5 archive (i.e. CCS5.1.0.09000_linux.tar.gz) to folder /home/blackhawk/Desktop/CCS5.1.0.09000_linux
     
    3.) In a terminal window enter the command below to setup a login password for root.
     $ sudo passwd root
     
    4.) Now that root has a password you can run sudo.  So, in the same terminal window run the CCS installer extracted earlier (cd to that folder) using the command:
     $ sudo ccs_setup_5.x.x.xxxxx.bin &
     
    5.) When the CCS install completes (I installed to /opt/ti), exit/close the terminal window, logout of Ubuntu and then log in again as user "blackhawk" (not sure if that was necessary, but did it anyway).
     
    6.) On the desktop, start CCS v5 using the provided icon and apply your license choice when prompted.
     
    7.) In CCS, I created a new connection file (XDS560v2 and C64x+ target), started the debugger and connected to the target board.  I was then able to load and run code.
     
     
    Following these procedures, we had no issues running CCS from any user account.  We also tried other installation locations (other then /opt/ti) with same good results.  Only when we started CCS as root did we have issues trying to run as user, "blackhawk". 
     
    After this testing, I have to assume that CCS was started for the first time as root and is the reason why are not able to run CCS properly from your regular user login.  Additionally, after uninstalling CCS, could it be that the root owned files creadted by starting CCS for the first time as root are not cleared during the uninstall and still exist  when you reinstalled CCS. 
     
    Does this information help?
     
    Regards,
    Andrew

  • Hi Andrew,

    Thanks for trying to reproduce this.  

    I followed these instructions exactly  on my system. I think it was the same as the previous installs I’ve done .

    The one difference from your instructions is that the installer seems to be creating a “.TI” folder under my home directory that is owned by root. I had to chown it to my user so I could run CCS as my user.

    Once I do that, CCS runs, but the same error is given when I try to debug with the Blackhawk. I assume that running CCS as sudo would fix allow the Blackhawk to connect, but I didn’t try it this time.

    One other possible difference on my system that seems worth mentioning but I doubt is the cause of this issue is that this is a 64-bit system. I’m not sure if yours is the same. Of course, there could be other differences, like which updates have been applied on the machines, so the Kernel versions may be different, for example, but again, this seems like a clear permissions issue and I don’t think any of that should matter for this.

    One other thing that is worth noting, is that if I run ccstudio from the terminal, I get a couple of warnings/errors. I understand the libgvfsdbus one is related to 32/64 bit issues and is not simple to fix. I don’t think this has anything to do with the Blackhawk issue, given that everything else works OK in CCS, including running with the XDS510, and running with the Blackhawk as sudo (I get the same error running CCS as sudo).

    ajoch@antimony:~$ /opt/ti/ccsv5/eclipse/ccstudio

    (ccstudio:18329): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (1021838425)

    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

    -- Anthony

  • Anthony,

    I downloaded an installed Ubuntu 10.04 LTS 64-bit. 

    Prior to performing the steps outlined before, I opened the Synaptic Package Manager and selected the option to add "ia32-libs" (outlined on the TI Wiki site for 64-bit Linux installations ).  Adding this package prompted installation of other related/required packages.  These were also selected to be installed. 

    After downloading and installing the packages, I followed my previous installation steps.  I started CCS and I was able to connect to a target using the XDS560v2, load code and step through the code execution.  I had no errors or warnings.

    Just to be clear, I installed the following CCS distribution version without applying any updates:  CCS5.1.0.09000_linux.tar.gz

     - Andrew

  • How can I un-install the Blackhawk XDS560v2 Congfiguration Utility - Bh560v2Config v.1.0.0.9 - from my Window computer?  Very bad idea to have installation but no uninstallation process or procedure.  I can't even find the program under Install/Uninstall in Control Panel.

  • Hello De Huynh,

    I am not sure why you want to uninstall the utility.  It is part of the Blackhawk Emulation package that is installed with CCS v4.2 and later.  The emupack uninstalls are used by CCS during its uninstall process following the procedure outlined by Texas Instruments and is the reason why they are not located in Add/Remove programs.  However, you can find all the emupack uninstall EXEs in the folder ccsv5/ccs_base/emulation.

    Please keep in mind that the Blackhawk device drivers are a separate install from CCS and the Blackhawk Emulation package because they can be used by more than one CCS installation.  You can find that uninstall using the Windows Add/Remove Programs or Uninstall feature in the control panel.

    I hope that helps.

    Andrew