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.

Issue in running NDK Ethernet Client and Udp example on TCI6636K2H evm board

Other Parts Discussed in Thread: TCI6636K2H

Hi,

I am trying to run following NDK Examples :

1) client 

2) Udp hello 

on TCI6636K2H EVM Board .

I am getting following output and my program gets stuck (keeps running )after this execution point , when i suspend or terminate the dsp it does not recover.

Output at the console:

[C66xx_0] QMSS successfully initialized

CPPI successfully initialized

PA successfully initialized

TCP/IP Stack 'Hello World!' Application

TCP/IP Stack 'Hello World!' Application

PASS successfully initialized


I further tried to verify if the board is actually transmitting some packets over ethernet using wireshark but could not see anything.

I even referred wiki thread to solve my problem and expected behavior of running ndk example :

http://processors.wiki.ti.com/index.php/Running_NDK_examples_for_Keystone_devices.   

But still could not solve the problem.

Requesting your help for the same.

 

thanks and regards

nikunj

  • Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    We will get back to you on the above query shortly. Thank you for your patience.

  • 1. Make sure you have connected ethernet cable on port0 of EVM.
    2. Are you running DHCP or STATIC ip mode? If DHCP, make sure that the EVM is connected to your local network where DHCP server is present.
    Thank you.
  • Hi Raja,
    Thanks for the prompt reply. I have tried both the modes as you indicated in step 2

    To give you further insight, when I First imported the C:\ti\mcsdk_bios_3_01_04_07\examples\ndk\client example, project build was ok , but when I tried to run on EVM I was not able to reach my code to main().

    Going further to solve this issue , following code changes were done:
    1)I have included MAC address corresponding to my machine:
    Uint8 clientMACAddress [6] = {0xE4, 0x11, 0x5B, 0x4C, 0x64, 0x1D}; /* MAC address for my PC */
    2) _SCBP6618X_ symbol was included in the project defines(this is what solved the problem to reach the main())

    Also, I have further tried to debug the problem. Now I can realize that I am facing issue similar to this below thread:
    e2e.ti.com/.../382444

    The example code seems to get stuck in Emac Init in NC_NetStart. To further resolve this , I could see my .cfg file was not having NDK Resources added.
    I added following NDK resources:
    1) DHCP (IPV6 enabled, can this create issue)
    2) IP
    3) UDP
    4) TCP

    I am using
    i) NDK Ver : ndk_2_24_02_31
    ii) MCSDK Ver: mcsdk_bios_3_01_04_07

    I also ensured that firewall is disabled, but still no luck.

    thanks and regards
    nikunj
  • Hi,

    Apologize for the delay. We have known issue with NDK examples on latest MCSDK 3.1.4.7.

    In order to fix that, we recommend you to rebuild the platform library with below changes and rebuild and test the NDK examples with updated platform library.

    Changes required:

    In the below file, the function, CSL_SgmiiDefSerdesSetup is modified in latest MCSDK as required with reference to the older version's file. Please replace the new folder with old file(evmc66x_phy.c)

    New:

    ~\ti\pdk_keystone2_3_01_04_07\packages\ti\platform\evmk2h\platform_lib\src\evmc66x_phy.c

    Old:

    ~\ti\pdk_keystone2_3_01_03_06\packages\ti\platform\evmk2h\platform_lib\src\evmc66x_phy.c

    If you compare the above both source files, you could see some differences in CSL_SgmiiDefSerdesSetup function.

    In case you have not installed 3.1.3.6, please replace it with attached source file.

    /cfs-file/__key/communityserver-discussions-components-files/791/6366.evmc66x_5F00_phy.c

    Thank you.