Actions
| Post | |
| Subscribe | |
| Unsubscribe |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WELCOME to coldfire-gnu-discuss@xxxxxxxxxxxxxxxx
- To: coldfire-gnu-discuss@xxxxxxxxxxxxxxxx
- Subject: Re: WELCOME to coldfire-gnu-discuss@xxxxxxxxxxxxxxxx
- From: codesourcery@xxxxxxxxxx
- 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
- Follow-Ups:
- Re: Debugging/Running program in internal Flash.
- From: codesourcery
- Re: Debugging/Running program in internal Flash.
- Prev by Date: Re: [coldfire-gnu-discuss] m68k-elf-sprite:libborunwind.so.6.0: cannot open shared object file
- Next by Date: Re: Debugging/Running program in internal Flash.
- Previous by thread: Welcome to coldfire-gnu-discuss@xxxxxxxxxxxxxxxx
- Next by thread: Re: Debugging/Running program in internal Flash.
- Index(es):