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.
I'm trying to get the enet_lwip example to work on the F28M35x Concerto. I've tried a number of things, none of which seem to work.
1. Connecting the controlcard directly to my computer with an ethernet cable. The card does not show up at all.
2. Connecting the controlcard to the router with an ethernet cable. My thinking here is that it should get an IP address from the router with DHCP and show up. It doesn't show up at all on the list of connected devices on the router. I made a variable for saving the ip address, like so:
static int currentIP = 0;
void SysTickIntHandler(void)
{
currentIP = lwIPLocalIPAddrGet();
//
// Call the lwIP timer handler.
//
lwIPTimer(SYSTICKMS);
}
When I pause and inspect this variable, the result is 0x20002768, or 32.0.39.104, which doesn't even make sense as an IP address on this network. So what's going on?
The only way I've managed to connect the controlcard is through a static ip address, which is used in the enet_uip example.
Any help is greatly appreciated.
Has anyone gotten the enet_lwip example to actually work?
I've tried setting it to a static ip address, so that it is similar to the enet_uip example in that regard. However, it doesn't seem to work even with a static ip address. Here is the code I used:
lwIPInit(pucMACArray, inet_addr("192.168.1.20"),\
inet_addr("255.255.255.0"),\
inet_addr("192.168.1.1"),\
IPADDR_USE_STATIC);
Pausing with the debugger, the function lwIPLocalIPAddrGet does retrieve the right static ip address. I still can't connect to this ip address, even though the same setup worked with the enet_uip example.
Any help?
Hello Michael,
I have managed to get the enet_lwip example to work with a Concerto controlCARD. I had to make a few changes to the code. I just posted a new question, which includes the code changes that I had made. Here is a link...
http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/303917.aspx
The subject line reads:
Thanks Pavel!
No wonder it didn't work. I'm amazed at the number of broken examples out of the box. enet_uip, enet_lwip, and the RTOS Ip stack demo all had problems. How does TI expect people to learn from the examples when so many are broken?
The enet_lwip example is broken due to incorrect GPIO setup code.
Trey German helped solve a problem I had in my own GPIO setup code, and posted two source files, that are essential to proper Ethernet setup. I recommend replacing the old files of the same name with the new ones...
Trey wrote...
>You're correct that the GPIO setup code in the current version has problems. We have fixed this internally, but haven't released it yet. Please try using the original example with this updated GPIO setup code and report back.