2016-12-13 15:32:40 -05:00
|
|
|
/*
|
2016-12-13 15:35:15 -05:00
|
|
|
GNU linker script for NRF52840 blank w/ no SoftDevice
|
2016-12-13 15:32:40 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Specify the memory areas */
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x100000 /* entire flash, 1 MiB */
|
|
|
|
FLASH_ISR (rx) : ORIGIN = 0x00000000, LENGTH = 0x001000 /* sector 0, 4 KiB */
|
2018-01-31 18:10:05 -05:00
|
|
|
FLASH_TEXT (rx) : ORIGIN = 0x00001000, LENGTH = 0x0E6000 /* 920 KiB */
|
|
|
|
FLASH_FATFS (r) : ORIGIN = 0x000E7000, LENGTH = 0x019000 /* File system 100 KiB */
|
2016-12-13 15:32:40 -05:00
|
|
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x040000 /* 256 KiB */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* produce a link error if there is not this amount of RAM for these sections */
|
2017-01-15 13:39:57 -05:00
|
|
|
_minimum_stack_size = 40K;
|
2018-02-07 14:36:19 -05:00
|
|
|
_minimum_heap_size = 0;
|
|
|
|
|
2016-12-13 15:32:40 -05:00
|
|
|
/* 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);
|
2017-01-15 13:39:57 -05:00
|
|
|
_heap_end = 0x20020000; /* tunable */
|
2016-12-13 15:32:40 -05:00
|
|
|
|
|
|
|
INCLUDE "boards/common.ld"
|