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.

issues with NDK examples



Hello,

I am using the LCDK C6748 board, and I wanted to try out the NDK examples on it. I am using SYS/BIOS 6.35.4.50, NDK 2.22.3.20, NSP 1.10.2.09 and XDCtool version 3.25.4.88. I followed the steps given in the user guide to try the client and the configuration examples. But in both cases, it did not display the client's IP address, without which I couldn't perform any tests. The console gives the following output for the configuration example:

[C674X_0]
TCP/IP Stack Client Configuration Demo
192 bytes required for save
Using default MAC address
Using MAC Address: 00-08-ee-03-14-99
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
GetIP Ready
Link Status: 100Mb/s Full Duplex on PHY 3

I tried using a static IP address through XGCONF, but it still gives the same output. The winapp commands says 'failed connect <10051>' when I use 'send' or 'recv'. I even tried pinging the board with the static IP address but it faiiled. Can anyone please help me with this problem?

Also I wanted to know if we have to use a crossover network cable to connect the host PC and the LCDK.

Thank you.

Sri

  • Sri,

    How are you connected to the LCDK?  Is it a direct connection to your PC, or are you using a switch?  

    If you are using a direct connection, you may or may not need a crossover cable.  Historically a crossover cable was required, but more recent boards will auto adapt.  But I don’t know about the LCDK specifically.  You can use a crossover cable, but it might not be required.

    For the configuration example, did you send a ping to assign an IP address (as described in 2.3.3.1 in the NDK user’s guide: http://www.ti.com/lit/ug/spru523h/spru523h.pdf)?  For this particular example, you will not be able to assign a static IP address with XGCONF.  To use a static IP you’ll need to try the client example.

    For the client example, do you have a DHCP server available?  When you tried a static IP address, did you make sure all the connection settings match your specific network setup?

    Also, are you trying to communicate to the LCDK with Windows?  If yes, are you able to try connecting from a Linux machine instead?

    Hope this helps…

    Scott

  • Hi Scott,

    Thank you for replying. I have a direct connection to the PC with the LCDK. From the LCDK wiki page, I found out that we do not need a crossover cable, as the ethernet phy on the LCDK can adapt to it.

    I tried the client example (ndk_evm6748_coff_client) with the static IP address. I do not have a DHCP server. Since I have a direct connection with the LCDK, without any other network, I used ipconfig to find out the PC settings:

    Autoconfiguration IPv4 address: 169.254.53.165

    Subnet mask: 255.255.0.0

    Default Gateway: none

    Using this information, I configured the static IP for the LCDK. The following are my settings on XGCONF:

    IP address: 169.254.53.166

    IP mask: 255.255.0.0

    Gateway IP address: 0.0.0.0

    Please correct me if I'm wrong in any step.

    -Sri

  • Hi Scott,

    I could get all the examples running. I found out the problem for the failed connection. The LCDK board which I was using, had been modified to use the UART 0. In the modification, it had disabled the ethernet phy on the board. So it was not responding to any commands. I replaced the board now, and I could get the client example running with the settings as mentioned in my previous post. Thank you for your reply.

    -Sri