29 lines
917 B
Plaintext
29 lines
917 B
Plaintext
|
/*
|
||
|
GNU linker script for NRF52840 w/ s140 6.0.0-6.alpha SoftDevice
|
||
|
*/
|
||
|
|
||
|
/* Specify the memory areas */
|
||
|
MEMORY
|
||
|
{
|
||
|
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x100000 /* entire flash, 1 MiB */
|
||
|
FLASH_ISR (rx) : ORIGIN = 0x00025000, LENGTH = 0x001000 /* sector 0, 4 KiB */
|
||
|
FLASH_TEXT (rx) : ORIGIN = 0x00026000, LENGTH = 0x09A000 /* 616 KiB */
|
||
|
FLASH_FATFS (r) : ORIGIN = 0x000C0000, LENGTH = 0x040000 /* File system 256 KiB */
|
||
|
RAM (xrw) : ORIGIN = 0x20004000, LENGTH = 0x03C000 /* 240 KiB */
|
||
|
}
|
||
|
|
||
|
/* produce a link error if there is not this amount of RAM for these sections */
|
||
|
_minimum_stack_size = 40K;
|
||
|
_minimum_heap_size = 0;
|
||
|
|
||
|
/* 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 = 0x20020000; /* tunable */
|
||
|
|
||
|
INCLUDE "boards/common.ld"
|