diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-17 20:27:29 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-17 20:27:29 +0000 |
commit | d7a9800e3ecdd8f6bce4b5ee83bfe91e4238b61e (patch) | |
tree | 8f4195e59f0692c34653236e64f632d37dcfdb8d /nuttx/configs/mcu123-lpc214x/ld.script | |
parent | 2329a560c03845b21f525cf269106bae13b1039e (diff) | |
download | px4-nuttx-d7a9800e3ecdd8f6bce4b5ee83bfe91e4238b61e.tar.gz px4-nuttx-d7a9800e3ecdd8f6bce4b5ee83bfe91e4238b61e.tar.bz2 px4-nuttx-d7a9800e3ecdd8f6bce4b5ee83bfe91e4238b61e.zip |
LPC2148 oots partially into NuttX
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@924 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/mcu123-lpc214x/ld.script')
-rw-r--r-- | nuttx/configs/mcu123-lpc214x/ld.script | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/nuttx/configs/mcu123-lpc214x/ld.script b/nuttx/configs/mcu123-lpc214x/ld.script index 80138e3b3..cf802e803 100644 --- a/nuttx/configs/mcu123-lpc214x/ld.script +++ b/nuttx/configs/mcu123-lpc214x/ld.script @@ -37,7 +37,10 @@ OUTPUT_ARCH(arm) ENTRY(_stext) SECTIONS { - /* The OS entry point is here (default MEMMAP mode assumed) */ + /* The lpc2148 has 512Kb of non-volatile memory beginning at address + * 0x00000000. The OS entry point is via the reset vector at address + * 0x00000000 (default MEMMAP mode assumed) + */ . = 0x00000000; .text : { @@ -51,10 +54,16 @@ SECTIONS *(.got) /* Global offset table */ _etext = ABSOLUTE(.); } + _eronly = ABSOLUTE(.); /* This is where the .data section + * is relocated for execution out + * FLASH */ - _eronly = ABSOLUTE(.); /* See below */ - . = ALIGN(4096); + /* The lpc2148 has 32Kb of on-chip static RAM beginning at address + * 0x40000000. The .data section will be relocated from _eronly + * to _sdata at boot time. + */ + . = 0x40000000; .data : { _sdata = ABSOLUTE(.); *(.data) |