micropython/ports/samd/boards/samd51x20a.ld
robert-hh 0d3f0d7470 samd/boards/SPARKFUN_SAMD51_THING_PLUS: Add board files for Thing Plus.
That device uses an SAMD51J20 MCU with 256k RAM and 1024k flash.
2022-10-25 22:42:17 +11:00

21 lines
449 B
Plaintext

/*
GNU linker script for SAMD51x20
*/
/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x00004000, LENGTH = 1024K - 16K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 256K
}
/* Top end of the stack, with room for double-tap variable */
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
_sstack = _estack - 16K;
_oflash_fs = ORIGIN(FLASH) + 384K - 16K;
_sflash_fs = LENGTH(FLASH) - 384K + 16K - 1;
_sheap = _ebss;
_eheap = _sstack;