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.

TM4C1294NCPDT: TM4C1294NCPDT enet_io static IP problem

Part Number: TM4C1294NCPDT

Hi,

This is the problem related to TM4C1294NCPDT Ethernet communication with IPADDR_USE_STATIC mode.

I have connected TM4C1294NCPDT board in LAN and running enet_io example code.

I could able see IP address, subnet mask and default gate way in IPADDR_USE_DHCP mode.

IP address : 192.168.1.227

sunbnet mask : 255.255.255.0

IP address : 192.168.1.240

Also I could able to do communication with board in IPADDR_USE_DHCP mode.

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

But If am using IPADDR_USE_STATIC mode, ui32NewIPAddress = lwIPLocalIPAddrGet();

function returns ip address 0. So I am not able to communicate.

I have written code for static mode as follows:

lwIPInit(g_ui32SysClock,pui8MACArray, 0xC0A80105, 0xFFFFFF00, 0xC0A801F0, IPADDR_USE_STATIC);

IP address : 192.168.1.05    (0xC0A80105)

sunbnet mask : 255.255.255.0   (0xFFFFFF00)

IP address : 192.168.1.240   (0xC0A801F0)

Can any one help on this problem?

Kiran