1
0
Fork 0

linker script: fix default ocm memory regions

This commit is contained in:
Astro 2019-08-19 02:19:48 +02:00
parent cc0c4e521e
commit c5a7f059c2
1 changed files with 4 additions and 3 deletions

7
link.x
View File

@ -1,6 +1,6 @@
ENTRY(_boot_cores); ENTRY(_boot_cores);
STACK_SIZE = 0x8000 - 4; STACK_SIZE = 0x8000;
/* Provide some defaults */ /* Provide some defaults */
PROVIDE(Reset = _boot_cores); PROVIDE(Reset = _boot_cores);
@ -15,7 +15,8 @@ PROVIDE(FIQ = Reset);
MEMORY MEMORY
{ {
/* 256 kB On-Chip Memory */ /* 256 kB On-Chip Memory */
OCM : ORIGIN = 0, LENGTH = 0x40000 OCM : ORIGIN = 0, LENGTH = 0x30000
OCM3 : ORIGIN = 0xFFFF0000, LENGTH = 0x10000
} }
SECTIONS SECTIONS
@ -59,7 +60,7 @@ SECTIONS
. += STACK_SIZE; . += STACK_SIZE;
} > OCM } > OCM
__stack_end = ADDR(.stack); __stack_end = ADDR(.stack);
__stack_start = ADDR(.stack) + SIZEOF(.stack); __stack_start = ADDR(.stack) + SIZEOF(.stack) - 4;
/DISCARD/ : /DISCARD/ :
{ {