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.

[FAQ] TMS320C6678: Static IP Configuration using PDK

Part Number: TMS320C6678
Other Parts Discussed in Thread: CCSTUDIO

How to set Static and DHCP IP configuration using PDK in C667x and C665x family Processors ?

  • To run the NIMU EMAC example for C667x devices make sure the prerequisites are present.

    1. CCSTUDIO_9.3.0.00012 (https://www.ti.com/tool/download/CCSTUDIO/9.3.0.00012),
    2. PROCESSOR-SDK-RTOS-C667x  (Version: 06_03_00_106 ) (https://software-dl.ti.com/processor-sdk-rtos/esd/C667x/latest/index_FDS.html)
    3. Example projects are generated (https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1082251/faq-tms320c6678-how-to-generate-the-ccs-pdk-examples-for-c6678).

    Now Import the CCS project into CCS and go on

    1. To Import the project, Go to File -> Import -> "CCS projects" in "C/C++" -> Browse "Select Search-directory". make sure to uncheck the "Copy Projects into Workspace" (This is to avoid compilation errors only If TI-RTOS SDK was installed in a different location than "C:\ti\").
    2. In the project "NIMU_emacExampleClient_EVMC6657C66BiosExampleProject",
      1. Modify the following lines to configure the IP as static.
        // IP Configuration
        //
        
        char *HostName    = "tidsp";
        char *LocalIPAddr = "192.168.1.4";
        char *LocalIPMask = "255.255.255.0";    // Not used when using DHCP
        char *GatewayIP   = "192.168.1.1";    // 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
        
        
        ... 
        
        
        /*
         * Main thread
        */
        int StackTest()
        {
            ...
            
                 
            if(1) // set '1' for manual IP configuration
            { 
                // Manual IP configuration 
                CI_IPNET NA;
                CI_ROUTE RT;
                ...
                
            }
            else
            {
                //DHCP configuration
            }
            
        
        }
      2. Modify the following lines to configure the IP by the DHCP server.
        int StackTest()
        {
        
            if(0) // set '0' for DHCP IP configuration
            { 
                // Manual IP configuration 
                CI_IPNET NA;
                CI_ROUTE RT;
                ...
                
            }
            else
            {
                //DHCP configuration
            }
        }
      3. Follow the video for a full demo.
    3. For C665x devices, 
      1. PROCESSOR-SDK-RTOS-C665x  (Version: 06_03_00_106 ) (https://software-dl.ti.com/processor-sdk-rtos/esd/C665x/latest/index_FDS.html)
      2. Example projects are generated (https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1040872/faq-tms320c6657-how-to-generate-the-ccs-pdk-examples-for-c6657).
    4.  Follow the video for full demo,

    Thanks & Rgards,

    Rajarajan U