From ea6e526ddbf4cf9bb7f72dfd8100fe47775df6f6 Mon Sep 17 00:00:00 2001 From: batt Date: Sun, 28 Mar 2010 13:20:41 +0000 Subject: [PATCH] Add LPC2378 linker script. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3290 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/scripts/lpc2378.ld | 58 +++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 bertos/cpu/arm/scripts/lpc2378.ld diff --git a/bertos/cpu/arm/scripts/lpc2378.ld b/bertos/cpu/arm/scripts/lpc2378.ld new file mode 100644 index 00000000..a931b2ea --- /dev/null +++ b/bertos/cpu/arm/scripts/lpc2378.ld @@ -0,0 +1,58 @@ +/** + * \file + * + * + * \author Francesco sacchi + * + * \brief Linker Script for NXP LPC2378 processors. + * + */ + + +MEMORY +{ + /* last 12k used by the bootloader */ + rom(rx) : org = 0x00000000, len = 512k - 12k + /* First 0x200 bytes and last 288 used by bootloader and debugger */ + ram(rwx) : org = 0x40000200, len = 32k - 0x200 - 288 +} + +/* USB RAM */ +__usb_ram_start = 0x7FD00000; +__usb_ram_size = 8k; +__usb_ram_end = __usb_ram_start + __usb_ram_size; + +/* Ethernet RAM */ +__eth_ram_start = 0x7FE00000; +__eth_ram_size = 16k; +__eth_ram_end = __eth_ram_start + __eth_ram_size; + +INCLUDE "arm7tdmi.ld" -- 2.25.1