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.

TIVA TM4C129XNCZAD: Setting static IP

Dear Members,

The example: enet_lwip contains the following line:

 lwIPInit (g_ui32SysClock, pui8MACArray, 0, 0 ,0, IPADDR_USE_DHCP);

 With this line, the evaluation board gets an IP address from DHCP server.

I changed it to:

lwIPInit (g_ui32SysClock, pui8MACArray, inet_addr ("3.1.168.192"), inet_addr ("0.0.255.255"),0, IPADDR_USE_STATIC);

But it seems the TIVA does not get the proper IP address: 192.168.1.3

I opened an Internet browser with this address and got nothing.

I also tried the line:

lwIPInit (g_ui32SysClock, pui8MACArray, 0xC0A80103, 0xFFFF0000,0, IPADDR_USE_STATIC);

and got the same problem.

There is a line:

Ui32NewIpAddress = lwIPLocalIPAddrGet ();

The value if  Ui32NewIpAddress is not the new IP.

Can you help ?

Thanks,

Zvika