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.

NDK Example client can't run on TMDXEVM6670L

Hi,all

I'm running example client which is inclued in mcsdk_2_00_01_12, on TMDXEVM6670L core 0. But ping failed. I used NDK version ndk_2_20_04_26.

I set my pc  IPAddress  192.168.2.101, subnetmask 255.255.255.0,default gateway 192.168.2.101,DNS sever is null. Please give some suggest ,I appreciate it.

 

[C66xx_0] QMSS successfully initialized 

[C66xx_0] CPPI successfully initialized 

[C66xx_0] PA successfully initialized 

[C66xx_0] 

[C66xx_0] TCP/IP Stack Example Client

[C66xx_0] Configuring DHCP client

[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] Service Status: DHCPC    : Enabled  :          : 000

[C66xx_0] Service Status: Telnet   : Enabled  :          : 000

[C66xx_0] Service Status: HTTP     : Enabled  :          : 000

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

 

Best Regards,

chaoyue

  • Since you are setting the Static IP address, you need not enable the DHCP Client.

    Also just open the client.c file and look for platform_get_switch_state(), its this state that decides whether we need to use DHCP or use Static IP address.

    It seems that the IP address is not assigned, so the ping fails.

  • Hi,

    Thanks Santosh for the suggestions.

    SW9 user switch 2 is the one which decides the DHCP or Static IP for the NDK examples and Demos. Please follow the Getting started Guide and User Guide of BIOS MCSDK on setting the user switch 2 to static IP mode and proceed. Hope it helps.

    RUnning NDK Examples is very much similar to running the Demo App.

    http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_Getting_Started_Guide#5._Running_the_Demonstration_Application

    -Aravind

  • Hi,

     ,you are right, thanks. I have resolved problem.

     

    Regards,

    chaoyue

  • Hi,   


    Thanks for your help, I have the other one question.

    i'm using NDK client example   that from mcsdk_2_00_01_12  run on EVM6670L.

     

       I have modified  client.c and used TCP mode

    char *LocalIPAddr = "192.168.1.41"; 

    .........

    hEcho = DaemonNew( SOCK_STREAMNC,inet_addr(LocalIPAddr), 56, dtask_tcp_echo,

                           OS_TASKPRINORM, OS_TASKSTKNORM, 0, 3 );

     

     

    I use a PC client  programe  connect NDK which is running on DSP ,but a few  second  socket connect will fail.

     

    [C66xx_0] QMSS successfully initialized 

    [C66xx_0] CPPI successfully initialized 

    [C66xx_0] PA successfully initialized 

    [C66xx_0] 

    [C66xx_0] TCP/IP Stack Example Client

    [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.1.41

    [C66xx_0] Service Status: Telnet   : Enabled  :          : 000

    [C66xx_0] Service Status: HTTP     : Enabled  :          : 000

    [C66xx_0] 00421.600 TCP: Retransmit Timeout

    [C66xx_0] 00431.600 TCP: Retransmit Timeout

    [C66xx_0] 00438.500 TCP: Retransmit Timeout

    [C66xx_0] 03917.400 TCP: Retransmit Timeout

    [C66xx_0] 05525.100 TCP: Retransmit Timeout

    [C66xx_0] 05537.400 TCP: Retransmit Timeout

     

     

    thanks,

    chaoyue