[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Assertion "memp sanity" failed at line 463 in ../lwip_1

From: Artem Pisarenko
Subject: Re: [lwip-users] Assertion "memp sanity" failed at line 463 in ../lwip_1_4_0/Src/core/memp.c
Date: Fri, 16 Nov 2012 16:34:14 +0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

I faced with similar problem some time ago. Most likely it means that global memory was corrupted because of thread-safety problems in your sys port or freertos configuration or misuse lwip functions from interrupts. Check sys_arch_protect()/sys_arch_unprotect(), configKERNEL_INTERRUPT_PRIORITY and configMAX_SYSCALL_INTERRUPT_PRIORITY in FreeRTOSConfig.h (special attention for Cortex-M3 !) Also, if your application or driver call lwip memory functions from interrupts, keep in mind, that it's very restricted and must be configured properly in lwipopths.h



Trying to get LWIP working with FreeRTOS 7.1.1  runs for a while then gives me the following assertion.


Assertion "memp sanity" failed at line 463 in ../lwip_1_4_0/Src/core/memp.c


This happens while thrash testing by bulk pinging from a Linux machine to test capabilities.


Comments in the file say this means pointers form a circle.

What normally causes this?

What is best approach to debug and fix?


My heap should be plenty big enough and no other errors received from memory diags.





Barry Andrews

lwip-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]