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.

Problem with hua demo

Hi,

Using C6678 EVM rev 2A, MCSDK 2_01_02_06 and windows 7 64 bit

I'm trying to run the MCSDK hua demo, I load the release .out that comes with it and ran in 6678.

Using static IP, the output is:

[C66xx_0] QMSS successfully initialized
[C66xx_0] CPPI successfully initialized
[C66xx_0] PA successfully initialized
[C66xx_0] HUA version 2.00.00.04
[C66xx_0] Setting hostname to tidemo-063223
[C66xx_0] MAC Address: 40-5F-C2-9B-C5-A2
[C66xx_0] EVM in StaticIP mode at 192.168.2.100
[C66xx_0] Set IP address of PC to 192.168.2.101
[C66xx_0] PASS successfully initialized
[C66xx_0] Ethernet subsystem successfully initialized
[C66xx_0] Ethernet eventId : 48 and vectId (Interrupt) : 7
[C66xx_0] Registration of the EMAC Successful, waiting for link up ..
[C66xx_0] Network Added: If-1:192.168.2.100
[C66xx_0] Service Status: THTTP    : Enabled  :          : 000
[C66xx_0]
[C66xx_0]  TCP Throughput test : TX for 10000 packets of 1000 bytes
[C66xx_0] TCP Transmit Task started

It never transmits the packets, but I can ping the EVM (192.168.2.100) from the Windows cmd and open the webpage in a browser. One really strange thing about the information page I get this:

CPU Frequency    2000 MHz 

2 GHz????? How??

In the TCP transmit test, I get a timeout in the following part of the code of TCP_perform_send() in ndkbenchmark.c

        for ( count = 0; count < 30 ; count ++)
        {
            /* Connect socket */
             res = connect( stcp, (PSA) &sin1, sizeof(sin1) );
             if (res < 0 )
            {
                 TaskSleep(5000);
            }
            else
                 break;
         }

I searched the forum and found some solutions that didn't work for me:

1 - Update Java

2 - Disable firewall

3 - Target configuration file Auto Run Options -> Run to symbol (main), enabled and disabled

None of these works for me and I think my problem is with my PC.

My switch configuration is:

SW3: OFF ON ON ON

SW4:   ON ON ON ON

SW5:   ON ON ON ON

SW6:   ON ON ON ON

SW1: OFF OFF

My launch, connect and Gel output are:

C66xx_0: GEL Output: Setup_Memory_Map...
C66xx_0: GEL Output: Setup_Memory_Map... Done.
C66xx_0: GEL Output:
Connecting Target...
C66xx_0: GEL Output: DSP core #0
C66xx_0: GEL Output: C6678L GEL file Ver is 2.005
C66xx_0: GEL Output: Global Default Setup...
C66xx_0: GEL Output: Setup Cache...
C66xx_0: GEL Output: L1P = 32K   
C66xx_0: GEL Output: L1D = 32K   
C66xx_0: GEL Output: L2 = ALL SRAM   
C66xx_0: GEL Output: Setup Cache... Done.
C66xx_0: GEL Output: Main PLL (PLL1) Setup ...
C66xx_0: GEL Output: PLL in Bypass ...
C66xx_0: GEL Output: PLL1 Setup for DSP @ 1000.0 MHz.
C66xx_0: GEL Output:            SYSCLK2 = 333.3333 MHz, SYSCLK5 = 200.0 MHz.
C66xx_0: GEL Output:            SYSCLK8 = 15.625 MHz.
C66xx_0: GEL Output: PLL1 Setup... Done.
C66xx_0: GEL Output: Power on all PSC modules and DSP domains...
C66xx_0: GEL Output: Security Accelerator disabled!
C66xx_0: GEL Output: Power on all PSC modules and DSP domains... Done.
C66xx_0: GEL Output: PA PLL (PLL3) Setup ...
C66xx_0: GEL Output: PA PLL Setup... Done.
C66xx_0: GEL Output: DDR3 PLL (PLL2) Setup ...
C66xx_0: GEL Output: DDR3 PLL Setup... Done.
C66xx_0: GEL Output: DDR begin (1333 auto)
C66xx_0: GEL Output: XMC Setup ... Done
C66xx_0: GEL Output:
DDR3 initialization is complete.
C66xx_0: GEL Output: DDR done
C66xx_0: GEL Output: DDR3 memory test... Started
C66xx_0: GEL Output: DDR3 memory test... Passed
C66xx_0: GEL Output: PLL and DDR Initialization completed(0) ...
C66xx_0: GEL Output: configSGMIISerdes Setup... Begin
C66xx_0: GEL Output:
SGMII SERDES has been configured.
C66xx_0: GEL Output: Enabling EDC ...
C66xx_0: GEL Output: L1P error detection logic is enabled.
C66xx_0: GEL Output: L2 error detection/correction logic is enabled.
C66xx_0: GEL Output: MSMC error detection/correction logic is enabled.
C66xx_0: GEL Output: Enabling EDC ...Done
C66xx_0: GEL Output: Configuring CPSW ...
C66xx_0: GEL Output: Configuring CPSW ...Done
C66xx_0: GEL Output: Global Default Setup... Done.
C66xx_0: GEL Output: Invalidate All Cache...
C66xx_0: GEL Output: Invalidate All Cache... Done.
C66xx_0: GEL Output: GEL Reset...
C66xx_0: GEL Output: GEL Reset... Done.
C66xx_0: GEL Output: Disable all EDMA3 interrupts and events.

Thanks

CPU Frequency
2000 MHz
  • Johannes:

    I'll take a look at this today and try to get back to you this evening!

    -John

  • Hi John,

    Thanks for looking at that, just one more thing that mught help, when I use DHCP I don't get the following lines

    [C66xx_0] Network Added: If-1:10.218.112.167
    [C66xx_0] Service Status: DHCPC: Enabled: Running: 017 

    The last messages I see are like these:

    [C66xx_0] Service Status: DHCPC    : Enabled  :          : 000
    [C66xx_0] Service Status: THTTP    : Enabled  :          : 000
    [C66xx_0] Service Status: DHCPC    : Enabled  : Running  : 000

    Thanks
  • Are you specifically using this demo to run the network benchmarks?

    I managed to recreate the issue you are having and am working to find a solution.  What I am currently trying is the use of a program called "iperf" which monitors this data.

    This link explains specifically how to run this example and, thus far, all my coworkers have used iperf as well when running this application.  http://processors.wiki.ti.com/index.php/MCSDK_HUA_Demonstration_Guide

  • Hi John,

    Yes, I'm using the demo to run the benchmarks. My intention is to modify the example code so I can use TCP or UDP and this demo was my starting point.

    I'll try iperf too.

    Thanks

  • Hi, John

    The picture of TCP test setup has two PCs and an EVM. Do I really need two PCs? I'm using just only one connected directly to the EVM and when I run

    iperf -c 192.168.2.100 -i 10 -t 600 -w 64K -d

    I get "connect failed: Connection refused"

    Thanks

  • Johannes:

    I found a solution that worked for me.  There is no need for IPERF whatsoever, nor a switch or third computer.  Simply connect the EVM to your computer over ethernet as you would initially.  For me, disabling firewall wasn't enough.  I had to additionally disable Symantec Network Protection (or whatever similar software you have installed on your computer).  Make sure to do system reset and run Scripts -> Global Default Setup each time you try the test as well.  Also, ensure you have no other previous instances of the test/web page running in your browser.  I found that current results were getting pushed to an old instance of the webpage which I never saw, and were not going back to console.  Lastly, most of our codes are verified with Internet Explorer and that's the browser I managed to get it working on.

    Hope this helps, keep me posted.

    Sincerely,

    John Demery

  • Hi John,

    Thanks for your answer. Making wht you said, the TCP transmit test worked.

    Just one more question, is there something special that should be done for the receive test? It's not working.

    Other problem that might show up is with Java itself, if you have a 64 bit system, with 32 and 64 bit Internet Explorer you must make sure to install the right version of Java and use the right version of IE (64 bit for both).

    Thabks

  • I just tested the TCP receive test as well and it looked like I was having the same problem, but it was just taking a long time.  Be patient with this one, it took mine slightly over 10 minutes to complete.  I believe there are ways to optimize this, but that should be saved for a different thread.  For now, let's just confirm yours works.

    First, I would make sure to disable your Symantec or network protection right before starting the program in CCS.  I found that mine turns back on after about 15 minutes or so which could interfere with the test.

    Also, I recommend a program called wireshark which will allow you to monitor traffic.  If possible, use this to confirm you are seeing traffic between the static of your IP and EVM, particularly while running the test. 

    Let me know if this works!

  • Thanks,John.

    I'll let it run for a longer time later.