2019-06-22 09:03:41 -04:00
|
|
|
/*
|
|
|
|
GNU linker script for SAMD51
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Specify the memory areas */
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
FLASH (rx) : ORIGIN = 0x00004000, LENGTH = 512K - 16K
|
|
|
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Top end of the stack, with room for double-tap variable */
|
|
|
|
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
|
|
|
|
_sstack = _estack - 16K;
|
|
|
|
|
2022-07-02 10:26:17 -04:00
|
|
|
_oflash_fs = ORIGIN(FLASH) + 384K - 16K;
|
|
|
|
_sflash_fs = LENGTH(FLASH) - 384K + 16K - 1;
|
|
|
|
|
2019-06-22 09:03:41 -04:00
|
|
|
_sheap = _ebss;
|
|
|
|
_eheap = _sstack;
|