From 619d45c0ffc02ca122f5ec7c34a1d6f82060fb7d Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Thu, 3 May 2018 18:41:14 -0700 Subject: Fix MK66F18 compilation for the following HALs: Serial, I2C, EXT, ADC, GPT, PWM, SPI --- .../startup/ARMCMx/compilers/GCC/ld/MK66FX1M0.ld | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'os/common/startup/ARMCMx') diff --git a/os/common/startup/ARMCMx/compilers/GCC/ld/MK66FX1M0.ld b/os/common/startup/ARMCMx/compilers/GCC/ld/MK66FX1M0.ld index c0e2cf2..4032c23 100644 --- a/os/common/startup/ARMCMx/compilers/GCC/ld/MK66FX1M0.ld +++ b/os/common/startup/ARMCMx/compilers/GCC/ld/MK66FX1M0.ld @@ -29,14 +29,10 @@ MEMORY flash0 : org = 0x00000000, len = 0x400 flash1 : org = 0x00000400, len = 0x10 flash2 : org = 0x00000410, len = 1024k - 0x410 - flash3 : org = 0x00000000, len = 0 - flash4 : org = 0x00000000, len = 0 - flash5 : org = 0x00000000, len = 0 - flash6 : org = 0x00000000, len = 0 - flash7 : org = 0x00000000, len = 0 - ram0 : org = 0x1FFF0000, len = 256k - ram1 : org = 0x00000000, len = 0 - ram2 : org = 0x00000000, len = 0 + flash3 : org = 0x10000000, len = 128k /* FlexNVM */ + ram0 : org = 0x1FFF0000, len = 64k /* SRAM_L (code RAM) */ + ram1 : org = 0x20000000, len = 192k /* SRAM_U (data RAM) */ + ram2 : org = 0x14000000, len = 4k /* FlexRAM */ ram3 : org = 0x00000000, len = 0 ram4 : org = 0x00000000, len = 0 ram5 : org = 0x00000000, len = 0 @@ -81,21 +77,21 @@ REGION_ALIAS("RAM_INIT_FLASH_LMA", flash2); /* RAM region to be used for Main stack. This stack accommodates the processing of all exceptions and interrupts.*/ -REGION_ALIAS("MAIN_STACK_RAM", ram0); +REGION_ALIAS("MAIN_STACK_RAM", ram1); /* RAM region to be used for the process stack. This is the stack used by the main() function.*/ -REGION_ALIAS("PROCESS_STACK_RAM", ram0); +REGION_ALIAS("PROCESS_STACK_RAM", ram1); /* RAM region to be used for data segment.*/ -REGION_ALIAS("DATA_RAM", ram0); +REGION_ALIAS("DATA_RAM", ram1); REGION_ALIAS("DATA_RAM_LMA", flash2); /* RAM region to be used for BSS segment.*/ -REGION_ALIAS("BSS_RAM", ram0); +REGION_ALIAS("BSS_RAM", ram1); /* RAM region to be used for the default heap.*/ -REGION_ALIAS("HEAP_RAM", ram0); +REGION_ALIAS("HEAP_RAM", ram1); /* Generic rules inclusion.*/ INCLUDE rules.ld -- cgit v1.2.3