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] TMS320C6657: NIMU EMAC example for C665x processor from TI-RTOS SDK

Part Number: TMS320C6657
Other Parts Discussed in Thread: CCSTUDIO

How to run NIMU EMAC example in TI-RTOS SDK?

  • To run the NIMU EMAC example for C665x devices make sure the pre-requisites are present.

    1. CCSTUDIO_9.3.0.00012 (https://www.ti.com/tool/download/CCSTUDIO/9.3.0.00012),
    2. PROCESSOR-SDK-RTOS-C665x  (Version: 06_03_00_106 ) (https://software-dl.ti.com/processor-sdk-rtos/esd/C665x/latest/index_FDS.html)
    3. 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).

    Now Import the CCS project into CCS and go on

    1. To Import the project goto 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. Now, Load the binary into the DSP core (By default on Core 0).
    4. In the "Console" window, 
      1. The following output will be shown for the successful setting of static IP,
      2. The following output will be shown for the successful setting of IP by DHCP service, 
    5. From the Output console, you can deduce that Along with DHCP service "Telnet" and "HTTP" service are also online.
      1. Telnet can be verified by connecting to the device IP and port 23.
      2. HTTP (webserver) can be verified by connecting to device IP and Port 80, Along with this, we can also view the web page stored in memory.

                         

    Thanks & Regards,

    Rajarajan U