Debugging/Running program in internal Flash.
codesourcery at gustad.com
codesourcery at gustad.com
Tue Apr 17 15:30:30 UTC 2007
From: codesourcery at gustad.com
Subject: [coldfire-gnu-discuss] Re: WELCOME to coldfire-gnu-discuss at codesourcery.com
Date: Tue, 17 Apr 2007 16:08:24 +0200 (CEST)
> >Petter wrote:
> >
> >
> > My question: does anybody have a working hello world project for
> > Sourcery G++, 5223x is target, running from flash (not copying
> > itself
> > from flash to ram during power-up and then running from ram) ?
>
>
> The clue is to put the text section into the flash. Here's from my
> linker script:
>
> MEMORY
> {
> ram (rwx) : ORIGIN = 512M, LENGTH = 32K
> flash (rx) : ORIGIN = 0, LENGTH = 256K
> ipsbar (rwx) : ORIGIN = 0x40000000, LENGTH = 0x0
> }
> ...
>
> .text :
> {
> *(.text .text.*)
> . = ALIGN(0x4);
> } > flash
>
> as well as the rodata:
>
> .rodata :
> {
> *(.rodata .rodata.*)
> . = ALIGN(0x4);
> } > flash
>
>
> Petter
That was my first post after joining the mailing list. I simply
replied to the first message from the list and forgot to change the
subject.
Sorry.
More information about the coldfire-gnu-discuss
mailing list