Quality RTOS & Embedded Software

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


Loading

lwIP_Demo_Rowley_ARM7 crash with a ping

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

The ping used is:
ping 172.25.218.205 -l 4096

I compiled the project with gcc.

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

Thanks a lot for your time.

Bye,
Paolo.

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?

Regards.

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!! (:<)

Regards,
Paolo.

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
#define IP_REASSEMBLY 0

hope it helps.

danilo


[ 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.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

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.


Careers

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

Renesas

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