EmbeddedRelated.com
Forums

LwIP port

Started by Nishant Agrawal June 22, 2012
Is there a port of LwIP for LPC23xx, possibly using freeRTOS? I can't seem
to find any port for LPC23xx series.

--
With Regards,
Nishant Agrawal


An Engineer's Guide to the LPC2100 Series

On 22/06/2012 10:31, Nishant Agrawal wrote:
>
>
> Is there a port of LwIP for LPC23xx, possibly using freeRTOS? I can't seem
> to find any port for LPC23xx series.

Just like FreeRTOS, most of the lwIP code is common to all platforms,
and the port layer is very thin.

lwIP ports need two port layers - one to the kernel being used (unless
you just using it in a superloop), and one to the hardware.

The kernel port layer that stitches lwIP and FreeRTOS together are in
common use. See:
http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_IO/Demo_Applications/LPCXpresso_LPC1769/NXP_LPC1769_Demo_Description.shtml

for an example running on an LPC1769.

The hardware port layer is just a MAC driver, so naturally changes
depending on the microcontroller/MAC hardware being used. It is more an
exercise in providing a MAC driver, rather than am exercise in porting
lwIP, so you can take an existing FreeRTOS/lwIP example and replace the
MAC driver for whatever chip you are using, and you have what you want.
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for microcontrollers. More than 7000 downloads per month.

+ http://www.FreeRTOS.org/trace
15 interconnected trace views. An indispensable productivity tool.

Thanks Richard,

I will look into the example you have provided and replace the MAC driver.

On Fri, Jun 22, 2012 at 3:26 PM, FreeRTOS Info wrote:

> **
>
> On 22/06/2012 10:31, Nishant Agrawal wrote:
> >
> >
> > Is there a port of LwIP for LPC23xx, possibly using freeRTOS? I can't
> seem
> > to find any port for LPC23xx series.
>
> Just like FreeRTOS, most of the lwIP code is common to all platforms,
> and the port layer is very thin.
>
> lwIP ports need two port layers - one to the kernel being used (unless
> you just using it in a superloop), and one to the hardware.
>
> The kernel port layer that stitches lwIP and FreeRTOS together are in
> common use. See:
>
> http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_IO/Demo_Applications/LPCXpresso_LPC1769/NXP_LPC1769_Demo_Description.shtml
>
> for an example running on an LPC1769.
>
> The hardware port layer is just a MAC driver, so naturally changes
> depending on the microcontroller/MAC hardware being used. It is more an
> exercise in providing a MAC driver, rather than am exercise in porting
> lwIP, so you can take an existing FreeRTOS/lwIP example and replace the
> MAC driver for whatever chip you are using, and you have what you want.
>
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for microcontrollers. More than 7000 downloads per month.
>
> + http://www.FreeRTOS.org/trace
> 15 interconnected trace views. An indispensable productivity tool.
>
>
>

--
With Regards,
Nishant Agrawal