From 9b9627f7223c6f2e20afaf57a340d8e4d3370aec Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 9 May 2009 15:18:14 +0000 Subject: Add support for fast GPIO on lpc214x git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1766 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/mcu123-lpc214x/nsh/ld.script | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'nuttx/configs/mcu123-lpc214x/nsh') diff --git a/nuttx/configs/mcu123-lpc214x/nsh/ld.script b/nuttx/configs/mcu123-lpc214x/nsh/ld.script index 3020fcc49..849f8492e 100644 --- a/nuttx/configs/mcu123-lpc214x/nsh/ld.script +++ b/nuttx/configs/mcu123-lpc214x/nsh/ld.script @@ -33,6 +33,12 @@ * ****************************************************************************/ +MEMORY +{ + flash (rx) : ORIGIN = 0, LENGTH = 500K + ram (rw) : ORIGIN = 0x40000000, LENGTH = 32K - 32 +} + OUTPUT_ARCH(arm) ENTRY(_stext) SECTIONS @@ -42,7 +48,6 @@ SECTIONS * 0x00000000 (default MEMMAP mode assumed) */ - . = 0x00000000; .text : { _stext = ABSOLUTE(.); *(.text) @@ -54,7 +59,7 @@ SECTIONS *(.glue_7t) *(.got) /* Global offset table */ _etext = ABSOLUTE(.); - } + } > flash _eronly = ABSOLUTE(.); /* This is where the .data section * is relocated for execution out * FLASH */ @@ -64,20 +69,22 @@ SECTIONS * to _sdata at boot time. */ - . = 0x40000000; .data : { _sdata = ABSOLUTE(.); *(.data) CONSTRUCTORS _edata = ABSOLUTE(.); - } + } >ram AT>flash + . = ALIGN(32 / 8); .bss : { /* BSS */ _sbss = ABSOLUTE(.); *(.bss) *(COMMON) _ebss = ABSOLUTE(.); } + + . = ALIGN(32 / 8); /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } -- cgit v1.2.3