Browse Source
To use if BLE stack is enabled. The custom linker script also set off space enough to compile in microbitfs+hal_nvmc.pull/3137/merge
Glenn Ruben Bakke
7 years ago
committed by
Damien George
2 changed files with 29 additions and 1 deletions
@ -0,0 +1,28 @@ |
|||
/* |
|||
GNU linker script for NRF51822 AA w/ S110 8.0.0 SoftDevice |
|||
*/ |
|||
/* Specify the memory areas */ |
|||
SEARCH_DIR(.) |
|||
GROUP(-lgcc -lc -lnosys) |
|||
MEMORY |
|||
{ |
|||
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 256K /* entire flash */ |
|||
FLASH_TEXT (rx) : ORIGIN = 0x00018000, LENGTH = 148K /* app */ |
|||
FLASH_USER (rx) : ORIGIN = 0x0003D000, LENGTH = 12K /* app data, filesystem */ |
|||
RAM (xrw) : ORIGIN = 0x20002000, LENGTH = 8K /* app RAM */ |
|||
} |
|||
|
|||
/* produce a link error if there is not this amount of RAM for these sections */ |
|||
_minimum_stack_size = 2K; |
|||
_minimum_heap_size = 1K; |
|||
|
|||
/* top end of the stack */ |
|||
|
|||
/*_stack_end = ORIGIN(RAM) + LENGTH(RAM);*/ |
|||
_estack = ORIGIN(RAM) + LENGTH(RAM); |
|||
|
|||
/* RAM extents for the garbage collector */ |
|||
_ram_end = ORIGIN(RAM) + LENGTH(RAM); |
|||
_heap_end = 0x20003c00; /* tunable */ |
|||
|
|||
INCLUDE "boards/common.ld" |
Loading…
Reference in new issue