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: Enet_TCP_ECHO SERVER

Part Number: TM4C1294NCPDT

Tool/software:

Hello, i am trying to run Enet_TCP_ECHO SERVER example provided in examples with tivaware.

When i first run the program i realized it didn't work, because it got stuck reading the mac address which i have not programmed in.
So i  removed the mac address reading part and added it  manually.

pui8MACArray[0] = 0x70;
pui8MACArray[1] = 0xFF;
pui8MACArray[2] = 0x76;
pui8MACArray[3] = 0x1F;
pui8MACArray[4] = 0x83;
pui8MACArray[5] = 0x79;


After this change the pf4 led started blinking and pn0,pf0 was always on but i could not connect my tcp server with putty

i have entered  168.168.1.100 and port 23 in putty with telnet selected.

But it kept refusing the connection.
I looked the program and i saw it was waiting for me to give ip address, so i have changed to use static address.

#define IPADDR(a,b,c,d)   ((uint32_t)((a) | ((b) << 8) | ((c) << 16) | ((d) << 24)))

#define STATIC_IP_ADDRESS   IPADDR(168,168,1,100)
#define NETMASK             IPADDR(255,255,255,0)
#define GATEWAY             IPADDR(168,168,1,1)

lwIPInit(g_ui32SysClock, pui8MACArray, STATIC_IP_ADDRESS, NETMASK, GATEWAY, IPADDR_USE_STATIC);


i use the IPADDR function to change the values into little endian also changed values in lwipopts.h ;


#define LWIP_AUTOIP                    0

#define LWIP_DHCP                       0



But currently it is still refusing connection.