Other Parts Discussed in Thread: CCSTUDIO
How to set Static and DHCP IP configuration using PDK in C667x and C665x family Processors ?
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.
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.
Now Import the CCS project into CCS and go on
// 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 } }
int StackTest() { if(0) // set '0' for DHCP IP configuration { // Manual IP configuration CI_IPNET NA; CI_ROUTE RT; ... } else { //DHCP configuration } }
Thanks & Rgards,
Rajarajan U