Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: Flash to RAM

2005-10-07 by Richard Duits

It may be easier to add the *(.text) to the initialized data section. It 
may be a bit of a hack, but this way you you can leave to startup/boot 
code unchanged (just tought of this, otherwise I would have mentioned it 
sooner). Make sure that the startup/boot code is in flash if you do this.


tripple_toast wrote:

> Hi Richard,
>
> Thanks for being my sounding block, I've now got the RAM code stored
> in flash running from RAM at boot.
>
> >>I assume you use GCC.
>
> GNUARM
>
> >>You also need to change the linker script to let
> >>the linker know that the code is stored in flash but it will be
> running
> >>from RAM (just like the initialized variables section).
>
> At the moment my boot app just uses hardcoded addresses to relocate
> the RAM code, are you saying I should use the linker script for the
> boot app and create a new section similar to the initialised
> variables section i.e.
>
>   .data : AT (_etext)
>   {
>     _data = .;
>     *(.data)
>   } > RAM
>
>

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.