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.

CCS/TM4C1294NCPDT: Ethernet Ping timeout issue in Lwip

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software: Code Composer Studio

I am facing issue during Ping from PC command prompt to EK-TM4C1294XL board. I have tried with static IP and DHCP both option in lwipopt.h file but same result. Ping is frequently timeouts after I restart the board. might be initialization not done properly during power recycle. some times it is working perfectly without any ping timeouts on command prompt. but after 4-5 power recycle attempts, it is getting breaks in Ping response.

can anybody help me in this? thanks in advance.

  • To understand if this is a hardware or software issue, have you successfully built and run the following demo without modification?
    C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\enet_lwip
  • Hi,

    thanks for the reply. yes successfully built and run demo code also. without any modifications and with modification of DHCP disabled . both the thing not working smoothly. after few attempts of pushing Reset button of ek board , ping breaks are coming. after that I again push reset button and its starts working smoothly for 1000s of pings till another few attempts. one thing I clarify, our code is running in our regular products since last 1 year. but few days back customer complaint that connection is losts during run time. then we debug our code on ek-TM4c board and we found after few reset cycle one time it is started breaking means ethernet is not initialize properly. so we tried to debug with lwip example project and we found same ping breaking thing occur during few power recycle attempts.
  • milap patel said:
    our code is running in our regular products since last 1 year

    So your code is also not configured correctly in some way causing breaks in PHY interrupts! You must debug your application to find what routine is taking time away from EMAC0.

  • Hi,

    thanks. I have same doubt and do lot of debug in my running code. so after not getting any clue , I run example code of Lwip from EK-TM4C board Tiva ware. and the same result.
  • Had noticed same issue with other modified examples LWIP1.4.1 may have been related to lwipopts.h settings of frame size, buffers, etc.. Issue went away, 1ms ping every time even loaded pings 4096 byte packets.
  • Hi,

    can u pls provide ref file lwipopts.h so that I can debug it and resolve my issue. thanks for the reply.
  • It's should be dropped at your project root, otherwise search LWIP folders under your includes.
  • Hi,

    I have already this file included but if you have any modified version from which you got succeeded then please let me know.
  • Is not that what learning is all about? You read then try to make it work better from added tweaks. Search this forum for LWIP issue may help in that quest. There is also LWIP web site to give you help in proper configurations.
  • ok thanks. will do that.