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.

lwip ppp on tm4c129xl

Hi,

I'm new to lwip.
I have tried lwip on TI TM4c1294 XL board, and it was fine. I can send TCP packet using raw api as well as receive TCP packet. So, I gained some experience from that.
Now, I want to try ppp over serial without ethernet code and PHY being involved.
Any suggestion how should I start ?

I know that I need to  init lwip stack and then init ppp. And the ppp and lwip main have to be on different thread (?)...

But, how about the netif since now I don't use ethernet if (instead I'm using sio - serial if)

Is there any sample code ?

Thank you so much

  • HI Siauhwa,

    We don't have any sample code for PPP implementation.

    Having said that the lwip wiki has a very detailed information on how to implement the necessary functions to support PPP over serial (there are about four functions as per the wiki). I am including the link here in case you haven't looked at it already http://lwip.wikia.com/wiki/PPP. The wiki also has an example of the intended application code along with necessary defines that should be added to the lwipopts.h file.

    I hope this information will help you. Good Luck!

    Thanks,
    Sai

  • Hi Sai, 

    Yes, Ihave read that wiki, but , what I need is sample code to get started. I'll let you know when I get there

    Thank you