This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: porting to Atmel-AT91, stub memory-layout, .bss does not fit


>>>>> "Andreas" == Andreas Bürgel <ab@genologic.de> writes:

Andreas> Who eats up the on-chip ram space? The stub isn't much more
Andreas> than a skeleton.

But it has various buffers for packet creation/decoding. It's a real
memory pig, actually (at least if you try to squeeze it into 8kB).

You should look at the nm output to see what buffers take up the
space, and reduce their size accordingly. Beware that you cannot make
them smaller than whichever is smaller of (a) 400 bytes or (b) the
number of bytes it takes to encode the register information (IIRC).

Also, the stub stack probably defaults to a couple of k.

I assume you have more RAM available?!?  You cannot expect to be able
to debug anything in 8kB of RAM. Both stub and application need space.

Jesper

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]