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: Thu, 23 Dec 2004 09:40:35 +0100




> Hello,
> unfortunately I don't think that the reason is the MEM_ALIGNMENT value. I
> use a 16-bit controller (CS167 infineon).

I only noticed some cosmetic thing.

mem.c casts the output of the alignment macro to
unsigned long while a similar line in memp casts
to mem_ptr_t (which equals u32_t in cc.h)

> #define MEM_SIZE                2000U

Maybe this is too small, try 3000U.

> #define PBUF_POOL_SIZE          24U

> #define PBUF_POOL_BUFSIZE       500U

This is too small, try at least 590U. This is chosen to fit
the minimum packet size an IP host must handle! (plus MAC frame)

> Can it be that I defined in another file a value that can have the result
I
> described?

Maybe. Or because we use different make files
the order in which stuff is allocated breaks the code.

Maybe the memory alignment macro's are broken,
but we don't see that because of the makefile difference.

> I tried a lot of different values for the defined values but none of them
> was successful.

Maybe try a different build order or fiddle
with an extra unsigned int dummy before the memory area.
(to force alignment)

Also browse the list of known issues of the Tasking linker.
What version of the toolchain do you use?

Bye,

Christiaan Simons

Software Engineer
Axon Digital Design

+31 (0)13 511 66 66
+31 (0)13 511 41 51

address@hidden
http://www.axon.tv





reply via email to

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