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.

CCS 5.1m7 Linux not connecting to Blackhawk LAN560

Hallo

I have a Blackhawk LAN560 20Pin JTAG emulator and would like to use it over Ethernet (since the USB-Port is not working anymore)... On Windows it's working fine: I can set the IP of the Device with the "LAN560 Configuration Utility" Program and CCS5.1 can easily connect to the MPU and Debug... But I have not found a tool like the one on Windows or the one described in this post:

http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/68274/247770.aspx

I'm using Ubuntu 10.04 and the Linux can ping the Blackhawk LAN560 JTAG emulator..

According to this TI Wiki page CCS5.1 should support this debugger, not only via USB... http://processors.wiki.ti.com/index.php/Linux_Host_Support#Emulator_Support

But how can I tell CCS5.1 which IP my Programmer has?

Can someone help me?

 

Best Regards

Chris

  • Chris,

    We are trying to get help from the emulator manufacturer, as they are much more knowledgeable about the configuration of this particular model.

    Thanks for your patience,

    Rafael

  • Hello Chris,

    In CCS v5.1 we added a Linux version of the utility called, bhnetcfg.  You can find it in the common\uscif folder where CCS is installed.  It is a command line tool.  You can get the syntax by running the command in a terminal window.  I have also poted the file here: 1464.bhnetcfg.zip

    In CCS setup, you can set the TCP/IP address of the emulator (this is different than under Windows CCS setup).  If you have an earlier version of CCS v5.1 without the IP address change to the emulator connection file, just enter the IP address in the I/O Port box (instead of 0x0, enter x.x.x.x, where x's are the IP address).

    You can also use an existing Windows PC to setup and test the IP address of the emulator (you don't have to do it under Linux if it was already configured by Windows).   I hope this helps.

    Andrew

  • Hello Andrew

    Thank you, I completely forgot about that configuration field... This was the solution to my problem... Sadly enough now I have a new Problem: I need a license... I thought I'd get a license like the one on windows for 30days... Somehow this is not working... Do you know how to obtain a 30days evaluation license for linux?

    Best regards

    Chris

  • Hi Andrew,

    Trying to connect with the CCSv5.3.0.00090 (under Linux Ubuntu 12.04LTS) to LAN560 emulators.

    I can ping to the emulator. I know that it is the emulator that answers to the ping as the ping fails as soon as I disconnect it from the network.

    I am trying to use the utilities provided in:
    /home/user/ti/ccsv5/ccs_basecommon/uscif/

    $BhEthStatus -c 2 137.167.188/.83
    returns:
    Address=137.167.188.83 Status=Available

    $bhnetcfg -a 137.167.188.83
    returns:
    Not found Blackhawk network emulator with USB index 0

    What do you advise to troubleshoot further?

    The subnetmask and gateway should be ok. I guess that BhEthStatus ensures that both are ok.
    Before when using an other submask it returned Address=137.167.188.83 Status=WSACONNREFUSED(0x6E).

    Thanks in advance and best regards,

    Anthony

  • Some good news. In fact CCS can connect to the LAN560 and in CCSv5 I can connect to the AM335x target.

    So may be I am just using the wrong arguments for bhnetcfg. I just found info in the usage help. Are there additionnal docs for this utility?

    Also is there an utility provided in CCSv5 (both Windows and Linux) that enables to setup the LAN560 ipaddress/submask/gateway? or do you have to use the good old tools that are provided in the original LAN560 CD (ie BH LAN configuration utility)?

    Thanks and best regards,

    Anthony

  • Hello Anthony,

    The LAN560's TCP/IP settings can be configured via the USB interface of the device on Windows and Linux.  So you can set the values using either operating system.  On Windows we provide the utility, bhethcfg.exe, as part of the Windows device driver install.  Under Linux, this is provided in the common/uscif folder as bhethcfg.; a command line tool.  Here is the usage for bhethcfg on Linux:

    Blackhawk (C) Network Emulator USB Configuration Utility 1.0
      Usage: bhnetcfg [-i emu_index] [-a ip_addr] [-m net_mask] [-g gateway_addr]
     
      Option values with/out space, default index=0, addr/mask in dot notation.
      If -i is given but no other option then current configuration is shown.
      If not all config options are given current config values are preserved.

    Both utilities access the emulator via USB and set the appropriate IP address, Mask and Gateway.  As far as what settings to provide for each paramter, that is up to you (or your IT department).  We only provide a default setting.  Once configured, the command can be run with only the -i option to display the emulator's settings.  Default index would be 0, unless you have multiple Blackhawk USB Emulators connected.

    FYI: BHEthStatus will query the LAN560 via Ethernet to see if it (a) exists, and (b) has someone connected.  This utility was created for locations that have multiple LAN560 emulators connected to target boards (i.e. a pool of target boards) and the users run a script to locate an available emulator for the target they wish to debug.  When an available status is returned, CCS would be started with that emulator's configuration.

    So, bhethcfg uses the USB interface and BHEthStatus uses Ethernet.  Could that have been the issue?

    I hope this information helps.

    Andrew

     

  • Thanks Andrew,

    Yes that was the issue. I thought that bhethcfg was as well used to check the Ethernet connection. It is all clear now.

    Thanks again.

    Anthony