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.

c66 cannot get the IP right

Other Parts Discussed in Thread: SYSBIOS

I'm debugging the ndk helloworld.project.

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 , 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?

looking froword to your answers.

  • 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 refer links below my signature. 

    Please provide below information.

    1. DSP Part number, 

    2. EVM or Custom Board,

    3. MCSDK Version

    Moved this thread to correct forum for faster response. Thank you.

  • Do you have network setup (LAN) that DHCP server running ?
    Have you modified the NDK's hello world example code ?

    Provide your CCS console logs.
  • 1、XEVMK2EX
    2、mcsdk_3_01_01_04_
    3、what does the DSP part number mean?

    looking forward to your answer/
  •   C66xx_0: GEL Output:

    Connecting Target...

    C66xx_0: GEL Output: TCI6636K2E GEL file Ver is 1.0

    C66xx_0: GEL Output: Detected PLL bypass enabled: SECCTL[BYPASS] = 0x00800000

    C66xx_0: GEL Output: (2a) MAINPLLCTL1 = 0x00000040

    C66xx_0: GEL Output: (2b) PLLCTL = 0x00000048

    C66xx_0: GEL Output: (2c) PLLCTL = 0x00000048

    C66xx_0: GEL Output: (2d) Delay...

    C66xx_0: GEL Output: (2e) SECCTL = 0x00810000

    C66xx_0: GEL Output: (2f) PLLCTL = 0x0000004A

    C66xx_0: GEL Output: (2g) Delay...

    C66xx_0: GEL Output: (2h) PLLCTL = 0x00000048

    C66xx_0: GEL Output: (4)PLLM[PLLM] = 0x00000013

    C66xx_0: GEL Output: MAINPLLCTL0 = 0x05000000

    C66xx_0: GEL Output: (5) MAINPLLCTL0 = 0x09000000

    C66xx_0: GEL Output: (5) MAINPLLCTL1 = 0x00000040

    C66xx_0: GEL Output: (6) MAINPLLCTL0 = 0x09000000

    C66xx_0: GEL Output: (7) SECCTL = 0x00890000

    C66xx_0: GEL Output: (8a) Delay...

    C66xx_0: GEL Output: PLL1_DIV3 = 0x00008002

    C66xx_0: GEL Output: PLL1_DIV4 = 0x00008004

    C66xx_0: GEL Output: PLL1_DIV7 = 0x00000000

    C66xx_0: GEL Output: (8d/e) Delay...

    C66xx_0: GEL Output: (10) Delay...

    C66xx_0: GEL Output: (12) Delay...

    C66xx_0: GEL Output: (13) SECCTL = 0x00090000

    C66xx_0: GEL Output: (Delay...

    C66xx_0: GEL Output: (Delay...

    C66xx_0: GEL Output: (14) PLLCTL = 0x00000041

    C66xx_0: GEL Output: PLL has been configured (CLKIN * PLLM / PLLD / PLLOD = PLLOUT):

    C66xx_0: GEL Output: PLL has been configured (100.0 MHz * 20 / 1 / 2 = 1000.0 MHz)

    C66xx_0: GEL Output: Power on all PSC modules and DSP domains...

    C66xx_0: GEL Output: Power on all PSC modules and DSP domains... Done.

    C66xx_0: GEL Output: WARNING: SYSCLK is the input to the PA PLL.

    C66xx_0: GEL Output: Completed PA PLL Setup

    C66xx_0: GEL Output: PAPLLCTL0 - before: 0x0x098804C0 after: 0x0x090804C0

    C66xx_0: GEL Output: PAPLLCTL1 - before: 0x0x00000040 after: 0x0x00002040

    C66xx_0: GEL Output: DDR begin

    C66xx_0: GEL Output: XMC setup complete.

    C66xx_0: GEL Output: DDR3 PLL (PLL2) Setup ...

    C66xx_0: GEL Output: DDR3 PLL Setup complete, DDR3A clock now running at 666 MHz.

    C66xx_0: GEL Output: DDR3A initialization complete

    C66xx_0: GEL Output: DDR done

    [C66xx_0] 0QMSS successfully initialized

    CPPI successfully initialized

    PA successfully initialized

    TCP/IP Stack 'Hello World!' Application

    TCP/IP Stack 'Hello World!' Application

    Setting hostname to tidsp

    MAC Address: 08-00-28-32-9D-07

    PASS successfully initialized

    Ethernet subsystem successfully initialized

    Ethernet eventId : 48 and vectId (Interrupt) : 7

    Registration of the EMAC Successful, waiting for link up ..

    DHCP Server ID:

    None

    Router Information:

    None

    Service Status: DHCPC    : Enabled  :          : 000

    DHCP Server ID:

    None

    Router Information:

    None

    Service Status: DHCPC    : Enabled  : Running  :000

    after this ,there is no other change. i can't get the IP.

    when manully, it some times will be an error like this

    [C66xx_0] 0QMSS successfully initialized

    CPPI successfully initialized

    PA successfully initialized

    TCP/IP Stack 'Hello World!' Application

    TCP/IP Stack 'Hello World!' Application

    Setting hostname to tidsp

    MAC Address: 08-00-28-32-9D-07

    PASS successfully initialized

    Ethernet subsystem successfully initialized

    Ethernet eventId : 48 and vectId (Interrupt) : 7

    Registration of the EMAC Successful, waiting for link up ..

    00000.000 PBM_free: Invalid Packet

    Network Added: If-1:192.168.2.101

    Network Removed: If-1:192.168.2.101

    ti.sysbios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free

    xdc.runtime.Error.raise: terminating execution

    when system reset and load the program again, it will be

    0QMSS successfully initialized

    CPPI successfully initialized

    PA successfully initialized

    TCP/IP Stack 'Hello World!' Application

    TCP/IP Stack 'Hello World!' Application

    Setting hostname to tidsp

    MAC Address: 08-00-28-32-9D-07

    PASS successfully initialized

    Ethernet subsystem successfully initialized

    Ethernet eventId : 48 and vectId (Interrupt) : 7

    Registration of the EMAC Successful, waiting for link up ..

    Network Added: If-1:192.168.2.101

    however , I still can't ping the IP from the PC nor testing the helloorld.exe.

    looking forward to you answer...

  • [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

    Ethernet subsystem successfully initialized

    Ethernet eventId : 48 and vectId (Interrupt) : 7

    Registration of the EMAC Successful, waiting for link up ..

    Service Status: DHCPC    : Enabled  :          : 000

    Service Status: DHCPC    : Enabled  : Running  : 000

    Service Status: DHCPC    : Enabled  : Fault    : 002

    this is the console information which i do no change on the code.

    I don' t know why I can't get the IP

  • Hi,

    Thanks for your logs.

    Have you tried run the example with static IP configuration via SW9 switch ?

    Please refer to the following TI wiki page for setting up the ethernet in static IP mode rather than DHCP mode (please refer 5th switch setting)

    I haven't change anything in code and my MCSDK package version is given below.

    "C:\ti\mcsdk_2_01_02_06\examples\ndk\helloWorld\evmc6678l"

    Did you call gel file ?

    Please provide your steps that you followed.

    Don't restart or reset the board, better to power OFF the board and run the application all the time when you need to load & run again.

    This is my gel file output log:

    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.

    Running NDK's "hello world" example through DHCP mode:

    [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

    Ethernet subsystem successfully initialized

    Ethernet eventId : 48 and vectId (Interrupt) : 7

    Registration of the EMAC Successful, waiting for link up ..

    Service Status: DHCPC    : Enabled  :          : 000

    Service Status: DHCPC    : Enabled  : Running  : 000

    Network Added: If-1:10.100.1.23

    Service Status: DHCPC    : Enabled  : Running  : 017

    Running NDK's "hello world" example through STATIC mode:

    [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

    Ethernet subsystem successfully initialized

    Ethernet eventId : 48 and vectId (Interrupt) : 7

    Registration of the EMAC Successful, waiting for link up ..

    Network Added: If-1:10.100.1.4

  • In fact, I'm using the XEVMK2EX, the DSP is c66ak2e05 . There is no SW9 on the EVM. It only has four swich which control the boot mode. I've tried to change the IP configure mode by changing the code. I  change the "0" to "1" in the "if (0)",as the picture.  it will show that I

    when  I run the dsp in static IP mode, the console shows information below. however, I can't ping it. using the "arp -a", there is no this IP.

    QMSS successfully initialized

    CPPI successfully initialized

    PA successfully initialized

    TCP/IP Stack 'Hello World!' Application

    TCP/IP Stack 'Hello World!' Application

    Setting hostname to tidsp

    MAC Address: 08-00-28-32-9D-07

    PASS successfully initialized

    Ethernet subsystem successfully initialized

    Ethernet eventId : 48 and vectId (Interrupt) : 7

    Registration of the EMAC Successful, waiting for link up ..

    Network Added: If-1:192.168.2.101

     

     

  • Hi,
    It would get IP address through DHCP server by default code implementation.
    Able to get a IP with DHCP (using "if(0)" )?

    If you setup with static mode, then you have to connect to one host machine which should have same subnet with IP address.
  • I'm really sorry for din't answer you in time. the problem is still not  resolved. 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.

  • Please follow up in the below post.
    e2e.ti.com/.../479364
  • Please do not duplicate threads.
  • still not work at all. 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????