Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


lwIP_Demo_Rowley_ARM7 crash with a ping

Posted by pdesii on March 14, 2008
lwIP_Demo_Rowley_ARM7 seems to crash if I make a ping with big packet.

The ping used is:
ping -l 4096

I compiled the project with gcc.

Someone can confirm me the problem?
Someone can help me?

Thanks a lot for your time.


RE: lwIP_Demo_Rowley_ARM7 crash with a ping

Posted by Richard on March 14, 2008
I imagine this is something to do with the buffer sizes. Am I right in assuming that pings of size less than 1500 work ok?


RE: lwIP_Demo_Rowley_ARM7 crash with a ping

Posted by pdesii on March 17, 2008
Yes, you are right. It works well with ping until 2000 byte. Then, with bigger ping, application crashes; if some packet was discarded, it have been not a big problem, but crashing, all application is unusable.
I tried to change al lot of lwip options, but the result was always the same.
I am very sorry, ... but I have no more ideas!! (:<)


RE: lwIP_Demo_Rowley_ARM7 crash with a ping

Posted by danilo vendruscolo on March 18, 2008
i have run into the same problem and I had it fixed when I disabled ip frag and ip reassembly
at lwiopt.h

You could try the lwip forum too, there are some bugs in pbuf.c that they say it would cause this problem, but when I download a newer pbuf.c, version 1.86, the bug persisted.

So the solution was to add these two lines to lwiopts.h

#define IP_FRAG 0

hope it helps.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner