From a0b79c96e951db8c971aa1c69dd450cfb864e462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Thu, 7 Nov 2013 19:59:53 +0000 Subject: [PATCH] made ram location of bas_ram dependend on overall memory size --- bas.lk.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bas.lk.in b/bas.lk.in index a70df28..4adf6b6 100644 --- a/bas.lk.in +++ b/bas.lk.in @@ -17,9 +17,9 @@ MEMORY { bas_rom (ROMFLAGS) : ORIGIN = TARGET_ADDRESS, LENGTH = 0x00100000 /* - * target to copy BaS data segment to. 20k should be enough for now + * target to copy BaS data segment to. 1M should be enough for now */ - bas_ram (WX) : ORIGIN = 0x1FFFB000, LENGTH = 0x900000 + bas_ram (WX) : ORIGIN = SDRAM_START + SDRAM_SIZE - 0x00100000, LENGTH = 0x00100000 } SECTIONS @@ -118,7 +118,7 @@ SECTIONS * Global memory map */ - /* SDRAM Initialization @ 0000_0000 - 1FFF_FFFF 512Mbytes */ + /* SDRAM Initialization */ ___SDRAM = SDRAM_START; ___SDRAM_SIZE = SDRAM_SIZE; _SDRAM_VECTOR_TABLE = ___SDRAM;