From 08beebcd83b1473f252d7a6ba7ea3bc4b8066f71 Mon Sep 17 00:00:00 2001 From: 0xc0170 Date: Fri, 2 Aug 2013 22:32:41 +0200 Subject: [PATCH] RAM region shifted by 0xC0 for vectors --- .../TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld b/libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld index ac2b84eedc..6c8da015b9 100644 --- a/libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld +++ b/libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld @@ -4,10 +4,10 @@ MEMORY { - VECTORS (rx) : ORIGIN = 0x00000000, LENGTH = 0x00000400 + VECTORS (rx) : ORIGIN = 0x00000000, LENGTH = 0x00000400 FLASH_PROTECTION (rx) : ORIGIN = 0x00000400, LENGTH = 0x00000010 FLASH (rx) : ORIGIN = 0x00000410, LENGTH = 128K - 0x00000410 - RAM (rwx) : ORIGIN = 0x1FFFF000, LENGTH = 16K + RAM (rwx) : ORIGIN = 0x1FFFF0C0, LENGTH = 16K - 0xC0 } /* Linker script to place sections and symbol values. Should be used together @@ -98,8 +98,6 @@ SECTIONS .data : AT (__etext) { __data_start__ = .; - /* vectors come here, shift 0xc0 */ - . = . + 0xC0; *(vtable) *(.data*)