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
>
>Message
Re: [lpc2000] Re: Flash to RAM
2005-10-07 by Richard Duits
Attachments
- No local attachments were found for this message.