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.

Unable to get BH560v2 working on 6678 evm using Ubuntu 12.0.4 LTS 32 bit, CCS 5.1



Hi,

I'm trying to get the Blackhawk 560 emulator working with my 6678 EVM using CCS 5.1.1.00033.  I did the install of CCS as  a normal user and then driver install using the script as root. Both were successful. When I set up a target configuration file and then try the test connection button I get the following message: Cannot run program ".....a  long path/ccs_base/uscif/dbgjtag.exe": java.io.IOException: error=2, No such file or directory.  I'm thinking since this is Linux it should not end in .exe.

I can see the emulator when I do a lsusb but when I launch the target configuration  I get an Error Initializing the Emulator: (Error -2083 @ 0x0) Unable to communicate with the emulator. Confirm emulator configuration and connections, .....

Also, if I run BH560 Conbfigu Utlity it fails to recognize the driver as well but it seems to be looking for bh560v2u.

CMD: dtc_conf get bh560v2u 0

USB: 0 devices found

Any thoughts on what to look at? I am running this on Ubuntu 12.0.4 32 bit.

Thanks,

Jack

  • Hi Jack,

    we have found with many items, and this may be the case here you need to install and launch with the same settings.  Eg we found if you install ccs as root ... if you launch as user there are packages that you don't have access to.  You need to install and launch as root or install and launch as user.

    Could you please give this a try and keep us informed.

    Best Regards,
    Lisa

  • Lisa,

    Thanks for the input. Here is an update.

    I am still unsuccessful in getting the BH560 Mez on the 6678 recognized under Ubuntu 12.0.4. I tried as you stated above and also re-installed both Ubuntu and CCS. I was successful, partially, in getting the XDS100v1 to work. I got up to the point of connecting and then ran into the DNUM issue which I am tackling in a different thread.

    Note that I also tried this on Ubuntu 10.0.4 and the 560 was recognized there (but also had the DNUM issue). The BH utility did recognize the device but the "test connection" button did not work  there either and gave the .exe issue even though I could load and connect.

    Thoughts? Is there anything I can collect for you to look at on 12.0.4?

    Jack

  • Hi Jack,

    our best guess with the information is that this is likely a USB port access/permissions issue.  So please check that.

    If I am able, I am going to see if I can reproduce an issue here.

    Please keep us informed.

    Best Regards,
    Lisa

  • Hi again Jack,

    we have not been able to reproduce this here.  We are also wondering whether it is related to the type of CCS installation.

    Would you be willing to check the following and please keep us informed

    - check the USB port access/permissions

    - install and launch CCS as sudo

    - double check you are selecting the correct emulator in your ccxml target config file. Are you using the EVM with the mezzanine card on it?  Have you selected the mezzanine card in your setup?

    Best Regards,
    Lisa

  • Lisa,

    Will do. With repect to the usb ports and permissions can you tell me what files to check specifically?

    Thanks,

    Jack

     

  • Lisa,

    A quick update. If I run CCS as sudo then the BH560 works so it does look like permissions. Ill try a fresh install again.

    Jack

  • Hi Jack,

    ok, glad to hear we seem to figured this out.  Unfortunately Linux is very permissions sensitive.  We have found a few different types of these style issues ... basically it is best to install CCS + supporting software as sudo and launch as sudo. This is the best and safest.

    Keep me informed how the fresh installation goes.

    Best Regards,

    Lisa

  • I will. Just to be clear though, I cant declare victory just yet.  I dont need to do this on 10.0.4 and this really wont work for us given the applicaiton we are using it in except as a short term work around. If you get a chance can you send me the list of files I need to check for usb permissons, etc.,.

    Thanks for all your help.

    Jack

     

  • Hi Jack,

    for sure ... we are still here to help :  )

    Have you seen this Ubuntu doc?

    https://help.ubuntu.com/community/Mount/USB

    Let me know if that does not help you check the USB settings.

    Best Regards,

    Lisa

  • Jack,

    I think there is an issue with the BH driver install script.  Personally I run as user but install as sudo and I have not had issues.  However I just got another report of someone having issues with the BH driver install on Ubuntu 12.04 when installing and running as user (and running the driver install script as sudo).

    They found a workaround:

    “I installed 5.2 GA and tried my BH 560 USBM emulator. I found that on Ubuntu 12.04 that the udev rule was not firing for me. I changed the syntax for the 71-bh-permissions to match the syntax in 71-ti and now it works.”

    I am following up with Blackhawk to get this resolved.  I am also giving it a try on my Ubuntu 12.04 64 image.  It doesn't seem to have the rules setup yet so I should be able to reproduce.  I don't think anyone trying to reproduce on an image that had CCS installed as sudo already won't see the problem.  

    Regards,

    John

  • I think there is no driver for Ubuntu 12.04...

    uname -a
    Linux  3.2.0-24-generic-pae #38-Ubuntu SMP Tue May 1 16:40:26 UTC 2012 i686 i686 i386 GNU/Linux

    ls -l /usr/local/CCSv5/ccsv5/ccs_base_5.0.3.00028/emulation/Blackhawk/Bh560v2/linux.ko/

    total 48
    drwxr-xr-x 2 root root 4096 May 23 16:23 2.6.25-14.fc9.i686
    drwxr-xr-x 2 root root 4096 May 23 16:23 2.6.27.25-78.2.56.fc9.i686
    drwxr-xr-x 2 root root 4096 May 23 16:23 2.6.27.41-170.2.117.fc10.i686
    drwxr-xr-x 2 root root 4096 May 23 16:23 2.6.27.5-117.fc10.i686
    drwxr-xr-x 2 root root 4096 May 23 16:23 2.6.27.9-159.fc10.i686
    drwxr-xr-x 2 root root 4096 May 23 16:23 2.6.32-21-generic
    drwxr-xr-x 2 root root 4096 May 23 16:23 2.6.32-27-generic
    drwxr-xr-x 2 root root 4096 May 23 16:23 2.6.35-22-generic
    -rwxr-xr-x 1 root root   37 Sep 10  2010 InstallKO.log
    -rwxr-xr-x 1 root root  370 Mar  9  2011 InstallKO.sh
    -rwxr-xr-x 1 root root   37 Sep 10  2010 UninstallKO.log
    -rwxr-xr-x 1 root root  370 Mar  9  2011 UninstallKO.sh

  • Andrew,

    The drivers are installed for ubuntu 12.04 with CCSv5.2.0/5.1.0.  The issue is with the permissions file.  Blackhawk has a fix for this and is working on deploying it via the update manager.  I have tested it out on my 12.04 64b machine.

    Looking at your path above you are running CCSv5.0.3.  

    Once Blackhawk has the patch posted I will reply to the thread with the instructions to install.

    Regards,

    John

  • Blackhawk has posted a fix for this.  The first thing you have to do is setup the Blackhawk update site.

    Window -> Preferences

    Type update in the filter box in the top left

    Select Available Software Sites

    This will now show a list of all the update sites that are configured.  Currently the Blackhawk 5.1 site is configured and not the 5.2 site.  The first site listed is the Blackhawk 5.1 site, uncheck it, scroll to the bottom of the list.  One near the end is the Blackhawk 5.2 site (for me it is second from the end).  Check this site.

    Then click ok in the dialog.

    Now go to Help -> Check for Updates

    This will search the update sites for updates to installed software.

    It should find an update to the Blackhawk software called "Blackhawk CCSv5.2 Emulation" with a version of 5.2.0.203.  If someone is reading this later on the version may be higher.

    Select this item and they hit Next.

    Hit Next again.

    Agree to the license and click Finish

    The update will install, this will take a little while.  You can run it in the background.

    It will then prompt you to restart CCS.  Say yes as the update hasn't actually installed yet.  That first part was really just the download.

    A little install progress window will open while the blackhawk update is installing.

    When finished CCS should restart.

    However since the rules file changed you also have to run the install_drivers script again.  Remember to do that as sudo.

    Regards,

    John

  • John and Lisa,

    Thanks for your help.

     

    I did another install as a user and installed the drivers using sudo. I could only get the BH to work when running CCS using sudo. I then took your input John. I wasnt able to see the update. I am using 5.1 but Im also having some proxy issues. If I view th eupdate site in windows (I know I cant download it) the latest update for Linux was 5.0 I think, so maybe they havent posted a fix for that yet? However, this blurb helped:

    “I installed 5.2 GA and tried my BH 560 USBM emulator. I found that on Ubuntu 12.04 that the udev rule was not firing for me. I changed the syntax for the 71-bh-permissions to match the syntax in 71-ti and now it works.”

    I went in and modified the bh 560 permissions file for the following:

    # BUS=="usb", SYSFS{idVendor}=="0b1e" ,SYSFS{idProduct}=="0009",MODE="0666"
    SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="0b1e" ,ATTRS{idProduct}=="0009",MODE:="0666"

    When I did that  I was able to run the BH 560 as a user and the 560 utility was able to see the device.

    I can consider this closed.

    Jack

     

  • Hi Jack,

    thanks for the update and all the best with development.  Thanks to John for pointing you correctly !

    Best Regards,
    Lisa