lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] initialisation of lwIP


From: Christiaan Simons
Subject: Re: [lwip-users] initialisation of lwIP
Date: Tue, 28 Dec 2004 14:12:14 +0100

On Thu, 2004-12-23 at 15:45, franz keuner wrote:

> I tried the proposed values but the result is always  the same. (Assertion
> "mem_malloc: !lfree->used" failed; "mem_malloc: allocated memory not above
> ram_end.""mem_malloc: allocated memory properly aligned.")

Probably I've missed something in your reports.

Now I read the "!free->used failed" and this tells
us there are not enough free memory blocks instead
of alignment problems. Or there is a problem in the
mem_free() function not flagging a free block as being free.

You probably need to increase the MEM_SIZE for this.
I also suspect you need more pbufs (from memp)
for your application. You have plenty SRAM,
so there should be no problem with this.

Or if you can live without TCP,
simply leave it out. I can't imagine this fails...

> I also changed my makefile and tried different build orders. The makefile
> order I`m using at the moment is listed below.

Thanks.

> I couldn`t find any information concerning lwIP, the Tasking linker and my
> problem.

An issue log for tasking toolchain can be found on the CDROM.

> I list a few  settiings I made in the Tasking EDE. Maybe there`s something
> not appropriate.
> 
> EDE -> CPU Configuration -> Advanced -> Syscon: 0004h
> EDE -> C Compiler options -> Code Generation (Memory Modell) -> Small
> EDE -> Linker Locator Options -> Format Options -> 16hex record
> EDE -> Linker Locator Options -> Memory -> ROM areas-> 0h-0DFFFh,
> 010000h-03FFFFh
> EDE -> Linker Locator Options -> Memory -> RAM areas-> 200000h-27FFFFh
> 

Looks fine. I see the BYTDIS bit is 0,
Thus I assume you have byte addressable SRAM (you need that for lwip).
Other SYSCON bits are fine too.

Also check if your (link) memory areas match the
BUSCON and ADDRSEL settings (in the EDE).
It is very important you set these registers as well!

(except for BUSCON0, which is the default
startup memory, this is configured with resistors)

Bye,
Christiaan Simons





reply via email to

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