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.
My working environment:
Code Composer Studio Version: 6.1.3.00034
TivaWare_C_Series-2.1.3.156
Board: EK-TM4C129XL Rev D
Windows 10 x64
Code sample: enet_io, path C:\ti\TivaWare_C_Series-2.1.3.156\examples\boards\ek-tm4c1294xl\enet_io
When I execute this code sample, I see the following information in debug UART output:
Waiting for IP.
Waiting for link.
Waiting for IP address.
IP Address: 169.254.104.26 // connects after 40 seconds, OK
To use static IP, I make the following change in the code:
// lwIPInit(g_ui32SysClock, pui8MACArray, 0, 0, 0, IPADDR_USE_DHCP); lwIPInit(g_ui32SysClock, pui8MACArray, 0xC0A80A01, 0xFFFFFF00, 0, IPADDR_USE_STATIC); // // 192.168.10.1
PC network adapter is set to static IP 192.168.10.200, subnet mask 255.255.255.0
UART output:
Waiting for IP.
Waiting for link.
Waiting for IP address.
The board never connects. So, DHCP is working, and static IP doesn't work.
Code sample: enet_lwip doesn't work at all, both in DHCP and static IP.
For reference: old EK-LM3S9B92 board with enet_lwip code sample from Stellaris development kip works properly on the same computer, both with DHCP and static IP.
Hello,
0xC0A80A01 used in lwipinit() is not the IP address you mentioned: IP 192.168.10.200
Yo also need the gateway address for lwipinit() function.
regards,
QJ