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 client example modification

hello:
i am working my DSP project using EVM6657 and i am new to CCS.In my project the first step is networking; sampling Data is generated from PC (server side) and listen  the client to forward the data in real time .then using C6657l evm borad , i am trying to write a TCP client application that receive the generated data and store to the memory for further processing. i tried to modify the example from NDK (C:\ti\mcsdk_2_01_01_04\examples\ndk\client\evmc6657l), but it didn't end well  from the beginning.  
.
i want your help to modify this example to my specific appication.

here is the error i gat:

[C66xx_0]
[C66xx_0] TCP/IP Stack Example Client
[C66xx_0] emac_init: core 0, port 0, total number of channels/MAC addresses: 1/1
[C66xx_0] MAC addresses configured for channel 0:
[C66xx_0] 00-18-30-09-FB-82
[C66xx_0] SGMII reset successful........
[C66xx_0] SGMII config successful........
[C66xx_0] emac_open core 0 port 0 successfully
[C66xx_0] Registration of the EMAC Successful, waiting for link up ..
[C66xx_0] Network Added: If-1:192.168.2.100
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] Service Status: Telnet : Enabled : : 000
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] Service Status: HTTP : Enabled : : 000
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] Service Status: Telnet : Disabled : : 000
[C66xx_0] Service Status: HTTP : Disabled : : 000
[C66xx_0] Network Removed: If-1:192.168.2.100
[C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
[C66xx_0] emac_close core 0 port 0
[C66xx_0]
[C66xx_0] 17:48 ( 26%) 15:96 ( 46%) 10:128 ( 41%) 0:256
[C66xx_0] 2:512 ( 33%) 0:1536 0:3072
[C66xx_0] (12288/49152 mmAlloc: 44/0/42, mmBulk: 0/0/0)
[C66xx_0]
[C66xx_0] 1 blocks alloced in 512 byte page
[C66xx_0] (0000)
[C66xx_0] 1 blocks alloced in 48 byte page
[C66xx_0] (000D)
[C66xx_0]

  • Hi,

    Please have a look at this E2E post, this will help you.

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/263530.aspx

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/267247.aspx

    I do not know, what are the changes you done in the client example project. Did you check and test this project without changes on the board?

    I can provide technical suggestion, if you share the modified code.

  • hello 

    thank you for your fast response :-)

    i just  imported the ndk client example to the ccs5 and configured only the following  source code lines( client.c):

    and i also made static ip address mode. 

    // Configuration

    char *HostName = "tidsp";
    char *LocalIPAddr = "192.168.2.100"; // Set to "0.0.0.0" for DHCP
    char *LocalIPMask = "255.255.254.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

    regard

    //---------------------------------------------------------------------------// Title String//char *VerStr = "\nTCP/IP Stack Example Client\n";
    // Our NETCTRL callback functionsstatic void   NetworkOpen();static void   NetworkClose();static void   NetworkIPAddr( IPN IPAddr, uint IfIdx, uint fAdd );
    // Fun reporting functionstatic void   ServiceReport( uint Item, uint Status, uint Report, HANDLE hCfgEntry );
    //---------------------------------------------------------------------------// Configuration

  • Hi,

    Did you set the proper switch settings for static IP on the EVM.

    If not, please refer the section "Set User Switch for the demo application" in the below wiki,

    http://processors.wiki.ti.com/index.php/TMDSEVM6657L_EVM_Hardware_Setup#Hardware_Setup_Steps

    And also BIOS MCSDK user guide will helpful for further support.

    http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_User_Guide

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

  • Hi,

    Did you try with proper switch setting for Static / DHCP IP? However this discussion will helpful for future readers, if you close this thread. Otherwise, please continue if any further support on the same. 

  • Hello pubesh

    i tried both the Static and DHCP IP settings . here what i did, before  importing the client example to ccs, i just created only the target configuration and loaded the existing client_evmc6657l.out found in (C:\ti\mcsdk_2_01_01_04\examples\ndk\client\evmc6657l\Debug )  and it worked fine . however  when i imported the whole (client_evmc6657l )project and debugging it using the same target configuration ,it show me the following fatal error .

    [C66xx_0]
    [C66xx_0] TCP/IP Stack Example Client
    [C66xx_0] emac_init: core 0, port 0, total number of channels/MAC addresses: 1/1
    [C66xx_0] MAC addresses configured for channel 0:
    [C66xx_0] 00-18-30-09-FB-82
    [C66xx_0] SGMII reset successful........
    [C66xx_0] SGMII config successful........
    [C66xx_0] emac_open core 0 port 0 successfully
    [C66xx_0] Registration of the EMAC Successful, waiting for link up ..
    [C66xx_0] Service Status: DHCPC    : Enabled  :          : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: Telnet   : Enabled  :          : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: HTTP     : Enabled  :          : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: DHCPC    : Enabled  : Running  : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: DHCPC    : Enabled  : Fault    : 007
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: DHCPC    : Disabled :          : 000
    [C66xx_0] Service Status: Telnet   : Disabled :          : 000
    [C66xx_0] Service Status: HTTP     : Disabled :          : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] emac_close core 0 port 0
    [C66xx_0]
    [C66xx_0]   18:48   ( 28%)     8:96   ( 25%)     9:128  ( 37%)     0:256          
    [C66xx_0]    2:512  ( 33%)     0:1536            0:3072         
    [C66xx_0] (12288/49152 mmAlloc: 37/0/34, mmBulk: 1/0/1)
    [C66xx_0]
    [C66xx_0] 1 blocks alloced in 512 byte page
    [C66xx_0] (0000)  
    [C66xx_0] 2 blocks alloced in 48 byte page
    [C66xx_0] (000D)  (000D)  
    [C66xx_0]

    regard,

    rediet

  • Hello pubesh

    i tried both the Static and DHCP IP settings . here what i did, before importing the client example to ccs, i just created only the target configuration and loaded the existing client_evmc6657l.out found in (C:\ti\mcsdk_2_01_01_04\examples\ndk\client\evmc6657l\Debug ) and it worked fine . however when i imported the whole (client_evmc6657l )project and debugging it using the same target configuration ,it show me the following fatal error .

    [C66xx_0]
    [C66xx_0] TCP/IP Stack Example Client
    [C66xx_0] emac_init: core 0, port 0, total number of channels/MAC addresses: 1/1
    [C66xx_0] MAC addresses configured for channel 0:
    [C66xx_0] 00-18-30-09-FB-82
    [C66xx_0] SGMII reset successful........
    [C66xx_0] SGMII config successful........
    [C66xx_0] emac_open core 0 port 0 successfully
    [C66xx_0] Registration of the EMAC Successful, waiting for link up ..
    [C66xx_0] Service Status: DHCPC : Enabled : : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: Telnet : Enabled : : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: HTTP : Enabled : : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: DHCPC : Enabled : Running : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: DHCPC : Enabled : Fault : 007
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] Service Status: DHCPC : Disabled : : 000
    [C66xx_0] Service Status: Telnet : Disabled : : 000
    [C66xx_0] Service Status: HTTP : Disabled : : 000
    [C66xx_0] 00000.000 FATAL: NDK_hookInit() must be set in DSP/BIOS Task module config
    [C66xx_0] emac_close core 0 port 0
    [C66xx_0]
    [C66xx_0] 18:48 ( 28%) 8:96 ( 25%) 9:128 ( 37%) 0:256
    [C66xx_0] 2:512 ( 33%) 0:1536 0:3072
    [C66xx_0] (12288/49152 mmAlloc: 37/0/34, mmBulk: 1/0/1)
    [C66xx_0]
    [C66xx_0] 1 blocks alloced in 512 byte page
    [C66xx_0] (0000)
    [C66xx_0] 2 blocks alloced in 48 byte page
    [C66xx_0] (000D) (000D)
    [C66xx_0]

    regard,

    rediet

  • Hi,

    Replace your client folder with the attached file here. Keep this folder at: C:\ti\mcsdk_2_01_02_06\examples\ndk

    Now try to build the project, load and run. Did you modify anything in the client? I am using NDK version ndk_2_21_02_43. Please share your whole project, I will try to run on EVM.

    2045.client.zip

  • Hi,

    Did you replace the client project from the attached file? Let us know, if you need further follow-up on this.