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.

K2E Can't get IP

I'm using EVMK2E, the DSP is C66AK2E05. No matter I configure the IP address manully or danymically, I can't ping the dsp successfully.

when mannuly, work the console shows that network added, however , but I can't ping it successfully. It comes to be "Destination host Unreachable".

When dynamically, the console shows that the DHCP running. I can't get the IP. I use the "arp -a" command ,but no information. how can I do to run the priject right?

When I use Static IP, I set the PC IP manully such as 192.168.0.100, and I will set the LocalIPaddr as well as the DSP IP 192.168.0.102, the are in the same subnet. But I can't Ping it sucessfully. With the "arp -a", I can't find the DSP MAC. I don't know why.  Really need you help. Thank you. Looking forward you reply.

looking froword to your answers.

  • If you want to get the IP dynamically, you must need DHCP server in your LAN which should provide IP.
    If you want to get the IP statically, then I would like to suggest to connect the DSP to PC directly through ethernet cable.
    Set the IP address manually in PC network settings and set one more different IP address for DSP in the same subnet.

    How did you connect the ethernet cable when you use static IP mode ?

    Please make sure that you kept boot mode in "DSP no boot" or emulation mode.
  • thank you for you reply. what I'm doing is just what you say. Now I'm trying to get the IP statically, I connect the PC and EVM through the ethernet cable which is supplied by TI. I'm using EVMK2E. the dial switch is set to "1111", DSP no Boot  mode.  the PC IP was set to"192.168.2.100", the IPmask is set to "255.255.255.0". the gateway IP is set to "192.168.2.101". and the picture below is the settings for DSP.  I don't why I can't get the IP.

    //---------------------------------------------------------------------------
    // Configuration
    //
    char *HostName    = "tidsp";
    char *LocalIPAddr = "192.168.2.103";
    char *LocalIPMask = "255.255.255.0";    // Not used when using DHCP
    char *GatewayIP   = "192.168.2.101";    // Not used when using DHCP
    char *DomainName  = "demo.net";         // Not used when using DHCP
    char *DNSServer   = "0.0.0.0";          // Used when set to anything but zero

     

  • Dear User,
    You have to modify the code for static IP configuration since K2E board uses DHCP mode by default.
    Please refer to the following TI wiki page.
    processors.wiki.ti.com/.../Running_NDK_examples_for_Keystone_devices
  • I have correct the "if (0)" in helloworld.c to "if (1)", still not work. another stange thing is only when I attached the port1(the upper one), the evm_init() can be successfully, does this matters????
  • Hi,
    Did you enable the PHY through CCS script as wiki mentioned ?

    ''Scripts -> DSP CLOCK Estimation -> setupPhy''

    You have to enable the PHY for running the NDK examples on K2E board.

    Can you please attach the CCS console log ?
  • My problems has been resolved.  the picture below is the wrong place. In the HelloWorld example, the  sConfig  is set to 0,   but in platform_init() function, it says, if one of sFlags and sConfig is 0, It will return error. So my solution is to set the sConfig.pllm to 1.            

  • Hi user4201149,
    Glad to hear that your problem got solved.
    We were able to run successfully just referring that wiki page.

    1) Set No boot mode

    2) Connect ethernet cable in down side port and connect target

    3) Run the PHY script in CCS and run the NDK example.

  • thanks again for you help. best wishes~~~~~~~~~~