aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/startup
diff options
context:
space:
mode:
authorMichael Walker <walkerstop@gmail.com>2018-05-03 18:41:14 -0700
committerMichael Walker <walkerstop@gmail.com>2018-05-07 07:45:08 -0700
commit619d45c0ffc02ca122f5ec7c34a1d6f82060fb7d (patch)
tree675aee7e3fb3446313cef31dbec44202de9bbbc3 /os/common/startup
parentf4b640014d7b042e80dfaec520d3a02fb7220dfe (diff)
downloadChibiOS-Contrib-619d45c0ffc02ca122f5ec7c34a1d6f82060fb7d.tar.gz
ChibiOS-Contrib-619d45c0ffc02ca122f5ec7c34a1d6f82060fb7d.tar.bz2
ChibiOS-Contrib-619d45c0ffc02ca122f5ec7c34a1d6f82060fb7d.zip
Fix MK66F18 compilation for the following HALs: Serial, I2C, EXT, ADC, GPT, PWM, SPI
Diffstat (limited to 'os/common/startup')
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/ld/MK66FX1M0.ld22
1 files changed, 9 insertions, 13 deletions
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