lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] mem_malloc return NULL


From: Akshat Bisht
Subject: Re: [lwip-users] mem_malloc return NULL
Date: Wed, 27 Aug 2008 13:55:06 +0530

Ok here is my problem: i increased MEM_SIZE to 2000 (if i put anything more the code is no longer executed. Even with the increased size, mem_malloc returns NULL..


Thanks and regards,
AB

On Wed, Aug 27, 2008 at 12:39 PM, Simon Goldschmidt <address@hidden> wrote:

> I don't have any means to read the debug values. When if i enable display
> functions, i won't have any means to "read" it.
> Am i sounding confused? All i wish to say is that i don't have means like
> JTAG, etc. to read back any thing from my kit.

That's a pity because all you can do then is make the heap larger and try again. Once it runs you could write a http server that tells you about the stats after running for a while so you could decrease the head again. You also might have to increase the pbuf pool size.

To see whether you run out of memory, you could turn on a LED wherever stats increase the 'err' member (look in memp.c, mem.c and maybe pbuf.c).

Simon
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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