From c5a7f059c2e0b58d70d46d74552e1cf331cdff07 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 19 Aug 2019 02:19:48 +0200 Subject: [PATCH] linker script: fix default ocm memory regions --- link.x | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/link.x b/link.x index e6c1a282..3a0c6ca9 100644 --- a/link.x +++ b/link.x @@ -1,6 +1,6 @@ ENTRY(_boot_cores); -STACK_SIZE = 0x8000 - 4; +STACK_SIZE = 0x8000; /* Provide some defaults */ PROVIDE(Reset = _boot_cores); @@ -15,7 +15,8 @@ PROVIDE(FIQ = Reset); MEMORY { /* 256 kB On-Chip Memory */ - OCM : ORIGIN = 0, LENGTH = 0x40000 + OCM : ORIGIN = 0, LENGTH = 0x30000 + OCM3 : ORIGIN = 0xFFFF0000, LENGTH = 0x10000 } SECTIONS @@ -59,7 +60,7 @@ SECTIONS . += STACK_SIZE; } > OCM __stack_end = ADDR(.stack); - __stack_start = ADDR(.stack) + SIZEOF(.stack); + __stack_start = ADDR(.stack) + SIZEOF(.stack) - 4; /DISCARD/ : {