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.

SW-EK-TM4C1294XL: How to use static IP with enet_io?

Part Number: SW-EK-TM4C1294XL

Hello,

I trying to develop a project with ethernet.  I took the example code of enet_io and changed the code to use a static ip as follows

Added the following code

uint32_t gStaticIPaddr;
uint32_t gNetMask;
uint32_t gWGaddr;

//setting the ip address to 192.168.100.9

    gStaticIPaddr= 0xC0A86409;            //192-->0xc0, 168-->A8,100--64 192.168.100.9
     gNetMask=0xFFFFFF00;
     gWGaddr=0;;
    //
    // Initialze the lwIP library, using DHCP.
    //
    lwIPInit(g_ui32SysClock, pui8MACArray, gStaticIPaddr, gNetMask, gWGaddr, IPADDR_USE_STATIC);
However the code stuck in 'Waitng for IP address'
Appreciate your help
Regards,
Ramesh