Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: ram initialization at reset

2006-03-07 by Tom Walsh

Guillermo Prandi wrote:

>Excellent walkthrough, Tom!
>
>I don't get why you're recommending this:
>
>  
>
>>>in the linker script, place a new section AFTER the bss.
>>>You want to avoid placing this in front of "__bss_end__ = . ;"!
>>>      
>>>
>
>I would have put it *before*, and I can't think of a reason not to do 
>so (not that putting it after would be harmful).
>
>  
>
Your choice, I just added it after.  Consideration is this, I am using 
newlib stubs and the sbrk() function references the first free memory 
from the "end" or "_end" location specified in the linker script.  Thus, 
the new section is "protected" from being part of the heap.

TomW




-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.