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 Failure to connect in linux

Other Parts Discussed in Thread: CCSTUDIO

I am trying to get a LAN560 to connect with linux over ethernet.


When I test the connection, I get a screen that says

[Start]

Execute the command:

%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

[Result]


-----[Print the board config pathname(s)]------------------------------------

/home/myagodich/.TI/1524211065/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'.
E_RPCENV_IO_ERROR(-6) No connection: Emulator open error
Failed to open i/o connection (bh560eth:-1062727939)

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]

I can connected under windows and ethernet to the same blackhawk, so I know that it is configured correctly.

I have narrowed it down (I think) to the tcp port that linux is using to communicate to the emulator.

When I connect with windows, windows connects to port 5988 on the emulator pod and everything works.

When I try to connect with linux, it is trying to connect to port 55756 on the emulator and it fails.  If I manually try to telnet to port 55756, I get connection refused.  If I manually telnet to 5988, I connect to the emulator.

Where is this port number/configuration stored or how is it computed?

Thanks

Milan

  • Hi Milan,
    Moved this thread over CCS forum for faster response. Thank you for your patience.
  • Milan,

    Here is a related thread that I think will be helpful.
    https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/136926

    If this does not help resolve your issue, I would suggest contacting Blackhawk directly as they are much more knowledgeable about the configuration for this emulator model.

  • AartiG,

    Thanks

    Blackhawk tech support has not been very helpful.  I'll continue to press them.

    I think something is not configured correctly with the drivers.  Analyzing the tcp data, what is sent from linux vs windows is radically different.

    Running

    root@myagodich:/opt/ti/ccsv5/ccs_base/common/uscif# ./BhEthStatus 192.168.14.253
    Blackhawk LAN560 Status Console Application Linux v5.1.0.105
    Copyright (c) 2011 EWA Technologies, Inc.

    Address=192.168.14.253 Status=Available

    says the emulator is there any available, but when I test the connection it fails.  So there is some disconnect between what CCStudio is using vs BhEthStatus.

    I've reinstalled 3 times now, twice as root and once as user and get the same results.

    Milan

  • Hello Milan,

    Sorry for your trouble configuring the LAN560 under Linux. 

    It is good to see that you can successfully run BhEthStatus.  That command was written for customers using many LAN560 units connected to different target boards.  It enabled their scripts to locate an available target board and connect via CCS automatically.

    I have read through all the support email thread information and find it going down a path that is unnecessary.  When there is an issue with the LAN560 using Windows or Linux, we recommend that both the computer and LAN560 be configured on the same subnet using the same network hub/router.  This will help eliminate possible routing and firewall issues, which "seems" to be the problem here since none of the IPs are on the same subnet.  Doing this will help isolate the cause of the problem.

    Is this something you can try - putting the Linux machine and LAN560 on the same subnet?

    Keep in mind, you can test this easily by using a spare 4/8/16-port hub without being connected to your office network.

     - Andrew

  • I just tried them on the same subnet.  I rebooted linux and power cycled the emulator.  Same result.

    I have been working with blackhawk and they insist it is a network issue.  But I get the same results in all cases.

    What I find odd is that in linux, the first packet sent after the initial TCP handshake contains 16 bytes of data. 

    In windows, which works, the first packet contains 270 bytes of data and the first 16 are not the same.  I think linux is confused as to which emulator it is talking to and is not sending the correct data.


    I get the same error pressing "Test Configuration" as I do when I run dbgjtag.  But the dbgjtag does not have any symbols and the returned errors are useless.

    Is it possible to get another build of dbgjtag that has verbose errors turned on so that I can see what is going on?

    Milan

  • It appears to be a hardware issue with the emulator. I was testing on a rev D LAN560.  HD-xxxx and it was failing.

    I worked with Blackhawk tech suppport to no avail.  At the end of the day, I tried to run the test on a rev G emulator (HG-xxxxx).  Problem went away.  Thought I had a bad emulator.  Found a 3rd emulator, again a rev D board and the test failed.

    Blackhawk tech support is looking into the revision issue.

    But my conclusion for now is that rev D emulator pods are now linux compatible.  Probably rev A through rev D.  Blackhawk tells me the emulator was redesigned with rev E.