Hello,
I am using the NDK and EMAC driver on a Tiva TM4C1294XL. I am having the same problems as everyone else -- the capture of the client ip address using initEMAC() is sporadic. Sometimes it works, sometimes is does not. I went through the steps outlined in a couple of other forums who are having the same problem. The best fix of course is highlighted in the TI-RTOS TM4C129 Emac Issues Wiki,
http://processors.wiki.ti.com/index.php/TI-RTOS_TM4C129_Emac_Issues
Implementing this fix helped a lot. My code went from almost never working to sporadic ip address capture. However, even implementing the wiki fix has not totally fixed my code. I saw in a couple of forums some users reported moving code around. I did this and found that it often worked. By moving my code around I could get the EMAC DHCP ip address capture to work. However, this is a big time waster. Just changing one line of code in some other module often would render a failure with the EMAC DHCP ip address capture. It often takes several tries to get the right combination of moved modules. I did find one relatively easy fix. Just add more "Board_initEMAC()" to the front of your main code. I have highlighted this below,
int main(Void)
{
// Initialize the Hardware and setup device API's
Board_initGeneral();
Board_initGPIO();
Board_initUSB(Board_USBDEVICE);
Board_initEMAC(); // If at first you don't succeed...
Board_initEMAC(); // try...
Board_initEMAC(); // try...
Board_initEMAC(); // try...
Board_initEMAC(); // and try again...Until it starts working...Crazy Hu?
// Initialize push button drivers
buttonInit();
// Initialize USB Controller
USBCDCD_init();
// Set Up tcpcontrol thread parameters
Task_Handle TcpControl;
Task_Params TcpControlPm;
As crazy as it seems, whenever I add more code to my build and find that the initEMAC() does not work I just add another "Board_initEMAC()". Although it gets the EMAC running I don't feel comfortable that this is a real fix ready to ship in a real product.
Dear TI software engineering...You really need to fix this. I have been living with this for 2 months and it is an enormous time waster. I can say I have spent weeks trying to get around this problem. I can see many many other are having the same problem. The Tiva community needs a fix fast...Please!!!!
Best Regards,
Steve Mansfield