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 v5 BlackHawk LAN560 Emulator Target Configuration Launch error

Other Parts Discussed in Thread: TMS320C6678, CCSTUDIO

I am trying to use my TMDXEVM6678L EVM board with a BlackHawk LAN560 emulator (BH-LAN-560) in LAN mode.

I created a Target Configuration file for the same.

When I tried to launch it, I get the following error:

IcePick_D: Error initializing emulator 

I tried switching to a different processor but it still does not work. I do not see this problem if the target configuration is launched for XDS100 v1 or BlackHawk USB 560 emulator. I can connect to the core and debug successfully via the XDS100 or the LAN560 emulator in USB mode.

Attached is the screen shot of my Target Confuguration.

Below is the copy/paste from 'source' tab of the target configuration:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<configurations XML_version="1.2" id="configurations_0">

<configuration XML_version="1.2" id="Blackhawk LAN560 Emulator, 20-pin JTAG Cable_0">

        <instance XML_version="1.2" desc="Blackhawk LAN560 Emulator, 20-pin JTAG Cable_0" href="connections/BH-LAN560_20pin_Connection.xml" id="Blackhawk LAN560 Emulator, 20-pin JTAG Cable_0" xml="BH-LAN560_20pin_Connection.xml" xmlpath="connections"/>

        <connection XML_version="1.2" id="Blackhawk LAN560 Emulator, 20-pin JTAG Cable_0">

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

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

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

            <platform XML_version="1.2" id="platform_0">

                <instance XML_version="1.2" desc="TMS320C6678_0" href="devices/C6678.xml" id="TMS320C6678_0" xml="C6678.xml" xmlpath="devices"/>

            </platform>

        </connection>

    </configuration>

</configurations>

Even though we can use USB for the moment, we need to put this setup in our lab and be able to access this remotely. Thanks for any help.

  • Hi,

    Unfortunately I don`t have such emulator with me to do some testing, but check below two ideas that may help you:

    Are you able to communicate with the emulator using the blackhawk low-level utility usually installed at: <CCS_INSTALL_DIR>\ccsv5\ccs_base\emulation\Blackhawk\Utility\BHProbe.2

    Is there any problem with the IP address configuration of the emulator or even a network issue between the host PC and the emulator?

    Hope this helps,

    Rafael

  • Hi Rafael,

    Thanks for your response.

    - I am able to ping the BH from my PC

    - I am attaching the outcome of running BHDetect.exe from C:\Program Files\Texas Instruments\ccsv5\ccs_base_5.0.3.00028\emulation\Blackhawk\Utility\BHDetect\

    - I am not able to connect to the device using blackhwk.cpl from C:\Program Files\Texas Instruments\ccsv5\ccs_base_5.0.3.00028\emulation\Blackhawk\Utility\BHProbe.2

    - I have older versions of CCS running too (3.1 and 3.3). So I ran the bhethcfg.exe utility from C:\CCStudio_v3.3\Blackhawk\Drivers.1\LAN\

    - Nothing shows up in 'Installed LAN560 Devices'

    - If I type in the IP address of the device using the Test Tab and click the Test button, I get the following:

    Session Started
    1. Pinging 10.46.145.31
      Reply from 10.46.145.31
    2. Connecting to 10.46.145.31:5988
      Emulator State: XDS560_POWERDOWN
    Warning: No XDS560 Device Selected
    Session Completed, 2/3 Tests Succeed

     

     

     

  • Quick update on this:

    - I was able to get it to work using the bhethcfg.exe utility of my CCS 3.3 installation (\CCStudio_v3.3\Blackhawk\Drivers.1\LAN) by the procedure:

       - Right-click the Installed LAN560 Devices >> Add >> BH560ETH 0 >> Enter IP address of Blackhawk, and then Start the service.

       - Now my LAN560 target configuration via CCSv5 opens correctly and I am able to connect with the DSP.

    Questions:

    I could not do the same steps using the blackhwk.cpl utility in C:\Program Files\Texas Instruments\ccsv5\ccs_base_5.0.3.00028\emulation\Blackhawk\Utility\BHProbe.2.

     

    - We will need to achieve the above without relying on driver/utility from CCS 3.3 installation. Can you point us to the steps that only use the drivers/utilities in the CCSv5 installation?

     

  • Hi,

    Thank you for reporting this; I will try to get the help of Blackhawk as they will have a better idea on how to work with the LAN560.

    Cheers,

    Rafael

  • Hello,

    I hope I can answer your questions on the LAN560.   First, the procedure used for CCS v5 is the same procedure in CCS v3.3.  This is what we have defined in our documentation and quick start guides.  Once you have it working for one version of CCS, it will work in the other.  In other words, once you configure the LAN560 IP settings and start the service using bhethcfg.exe, you can use either CCS version installed on the PC (but not at the same time).  FYI: The utility folder is just a utility area - it is not for configuration or use with CCS.  But it is good you saw that it is operating properly.  You can find LAN560 documentation in one or both of these similar paths:  \CCStudio_v3.3\Blackhawk\Docs or \CCSv5\ccs_base\emulation\Blackhawk\Docs

    If you have any other questions, please feel free to email our support staf directly at support@blackhawk-dsp.com.

     

    Thanks, 

    Andrew

  • Hello,

    I hope I can answer your questions on the LAN560.   First, the procedure used for CCS v5 is the same procedure in CCS v3.3.  This is what we have defined in our documentation and quick start guides.  Once you have it working for one version of CCS, it will work in the other.  In other words, once you configure the LAN560 IP settings and start the service using bhethcfg.exe, you can use either CCS version installed on the PC (but not at the same time).  FYI: The utility folder is just a utility area - it is not for configuration or use with CCS.  But it is good you saw that it is operating properly.  You can find LAN560 documentation in one or both of these similar paths:  \CCStudio_v3.3\Blackhawk\Docs or \CCSv5\ccs_base\emulation\Blackhawk\Docs

    If you have any other questions, please feel free to email our support staff directly at support@blackhawk-dsp.com.

     

    Thanks, 

    Andrew

  • Hi Andrew,

    I am trying to connect a BH LAN560 to a machine with CCS 5.3 installed (Machine A is running Win XP SP3).
    As a test I took an older machine (Machine B running Win XP SP2 and CCS 3.30).

    I can ping with both machines to the LAN560 (192.168.254.12).

    1) With Machine B under CCS 3.30 I get the enclosed message using the config utility.

    2) With Machine A under CCS 5.3 I get the following error using the Test Connection:
    [Start]
    Execute the command:
    %ccs_base%/common/uscif/dbgjtag.exe -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity
    [Result]
    -----[Print the board config pathname(s)]------------------------------------
    C:\DOCUME~1\EPIC\LOCALS~1\APPLIC~1\.TI\693494126\
        0\0\BrdDat\testBoard.dat
    -----[Print the reset-command software log-file]-----------------------------
    This utility has selected a 560/2xx-class product.
    This utility will load the program 'bh560eth.out'.
    Failed to open i/o connection (\\.\bh560eth-1062666740)
    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 named emulator via USCIF ECOM has failed.
    [End]


    - Trying to call the XDSprobe manually using the file generated by CCS I get:
    XDSprobe -f C:\DOCUME~1\EPIC\LOCALS~1\APPLIC~1\.TI\693494126\0\0\BrdDat\testBoard.dat -r

    Note: The explanation of the features of this utility
    is available in the brief help and the full manual
    accessed with the [-h] and [-H manual] options.
    -----[An error has occurred and this utility has aborted]--------------------
    This error is generated by TI's USCIF driver.
    The value is '-496' (0xfffffe10).
    The title is 'SC_ERR_SUBPATH_ITEM_BAD'.
    The explanation is:
    In the configure file a subpath name=value has a bad name or value.


    - The .dat file is below. The IPaddr seems ok:
    # config version=3.5
    $ uscif
      ecom_drvr=bh560eth.out
      ecom_port=0xc0a8fe0c
    $ /
    $ bh560
      rtck_termination=0
    $ /
    $ uscif
      tclk_program=automatic
      tclk_frequency=exchange
      tdoedge=fall
      jtagboot_mode=disable
      jtagboot_value=hiz
      powerboot_mode=disable
      powerboot_value=hiz
      loopback_mode=disable
    $ /
    @ icepick_c family=icepick_c irbits=6 drbits=1 subpaths=3
      & subpath_2 address=19 default=no custom=no force=yes pseudo=no
        @ etb11_0 family=etb11 irbits=4 drbits=1 traceid=0x0
      & subpath_1 address=18 default=no custom=no force=yes pseudo=no
        @ arm9_0 family=arm9xx irbits=4 drbits=1 traceid=0x0
      & subpath_0 address=17 default=no custom=no force=yes pseudo=no
        @ c674x_0 family=tms320c674x irbits=38 drbits=1 traceid=0x0
        @ pru_1 family=pru irbits=0 drbits=0
        @ pru_0 family=pru irbits=0 drbits=0
      & /
    # /

    What could I test next?
    Any reason why a machine would fail to connect to the emulator while the other one would?
    Any tips?

    Thanks and best regards,

    Anthony

  • Andrew,

    Also on machine A (CCS 5.3 under win XP SP3) when I run the bhethcfg.exe file (under program files\blackhawk\Emulation\drivers\LAN\v2.0.0.4) I get the enclosed message:
          Error: The system cannot find the file specified.

    I assume that the utility can find the .dat file created by CCS.
    Is there something to do to point it to the file?

    Thanks and best regards,

    Anthony

  • Ok, now I get the same log from the LAN560 from both PC (see enclosed).
    However from the CCS side (test connection) I still get the same error message.
    Am I missing something in the CCS config?

    [Start]
    Execute the command:
    %ccs_base%/common/uscif/dbgjtag.exe -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity
    [Result]
    -----[Print the board config pathname(s)]------------------------------------
    C:\DOCUME~1\EPIC\LOCALS~1\APPLIC~1\.TI\693494126\
        0\0\BrdDat\testBoard.dat
    -----[Print the reset-command software log-file]-----------------------------
    This utility has selected a 560/2xx-class product.
    This utility will load the program 'bh560eth.out'.
    Failed to open i/o connection (\\.\bh560eth-1062666740)
    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 named emulator via USCIF ECOM has failed.
    [End]

  • Hello Anthony,

    From the images provided, you have the LAN560 with IP Address 192.168.254.12 configured at "BH560ETH 1".  This coresponds to I/O PORT #1. 

    Do you have CCS configured to use I/O Port #1?

    You'll need to switch to the adavanced tab within the Target Configuration dialog and select the emulator connection.  Then you can view/change the Emulator I/O Port Number.  The default is 0.

     

     -Andrew

  • Hi Andrew,

    You are correct I just had to specify the port and not the ipaddr.
    In fact I used CCSv5.3 under Linux last week and I did not realized that in advanced config the ipaddr field in CCS for Linux was different from the I/O port number Number in CCS for windows.
    I am just wondering where the IP address is taken from since it does not appear in the .dat file.

    Thanks for your help.

    Anthony

  • Anthony,

    Under Windows, we are still limited by the original Windows Kernel mode driver of the TI XDS560 porting kit.  We must supply a kernel mode driver, which has no access to or knowledge of  the DAT file information.  Without getting too specific, we have to propagate the kernel mode stuff back to user mode to get access to the computers Ethernet connection.  This "re-director" for the LAN560 accesses the IP address stored by the bhethcfg utility based on the I/O Port number.

    There are less restrictions for Lunix and we can use the actual IP address in CCS.

    Andrew

  • Just a little note about using the LAN560 with CCSv6 on Win7:

    The "LAN560 Configuration" (from the windows sart menu: All programs/Blackhwak/Emulation/drivers) need to be started with "run as administrator" otherwise you can not start the service (the error would be "access is denied').

    Once it is done it works as in CCSv5.

    ANthony