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.
Hi,
I have been trying to get the lwIP demo up and running for some time.
I am working on Hercules TMS570LC43x Development Kit. (HalcoGEN version: 04.06.00, Code Composer Studio version: 7.3.0.00019)
I managed to get the "Webserver accessible @ http://172.18.63.37" message over SCI. Everything seems fine, but when I enter the URL in the browser, no communication is established.
I am assigning static IP address (DHCP not working).
My computer has the IP 172.18.63.151 with network mask "255.255.255.0" and gateway "172.18.63.1"
The following part is how I initialize lwIP:
uint8 ip_addr[4] = { 172, 18, 63, 37 }; uint8 netmask[4] = { 255, 255, 255, 0 }; uint8 gateway[4] = { 172, 18, 63, 1 }; ipAddr = lwIPInit(0, macAddress, *((uint32_t *)ip_addr), *((uint32_t *)netmask), *((uint32_t *)gateway), IPADDR_USE_STATIC);
HDK and my computer is connected to a router (not directly connected) and I tried switching their cables and both cables seem to work fine. I tried a UDP client application on HDK and I cannot receive any UDP packets on the server application running on my machine. (Tried sending messages over UDP with the same cables between two PCs running on Windows, working fine!)
What may be the problem?
Thanks,
Erkan
Hello Erkan,
There is no problem to use static ip. How did you get the ip address for the HDK?