samd/boards: Use the same linker file for all SAMD51x19 variants.
This commit is contained in:
parent
9f4df86016
commit
65f99e371d
|
@ -1,6 +1,6 @@
|
||||||
MCU_SERIES = SAMD51
|
MCU_SERIES = SAMD51
|
||||||
CMSIS_MCU = SAMD51J19A
|
CMSIS_MCU = SAMD51J19A
|
||||||
LD_FILES = boards/samd51j19a.ld sections.ld
|
LD_FILES = boards/samd51x19a.ld sections.ld
|
||||||
TEXT0 = 0x4000
|
TEXT0 = 0x4000
|
||||||
|
|
||||||
# The ?='s allow overriding in mpconfigboard.mk.
|
# The ?='s allow overriding in mpconfigboard.mk.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
MCU_SERIES = SAMD51
|
MCU_SERIES = SAMD51
|
||||||
CMSIS_MCU = SAMD51G19A
|
CMSIS_MCU = SAMD51G19A
|
||||||
LD_FILES = boards/samd51g19a.ld sections.ld
|
LD_FILES = boards/samd51x19a.ld sections.ld
|
||||||
TEXT0 = 0x4000
|
TEXT0 = 0x4000
|
||||||
|
|
||||||
# The ?='s allow overriding in mpconfigboard.mk.
|
# The ?='s allow overriding in mpconfigboard.mk.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# https://www.minifigboards.com/mini-sam-m4/mini-sam-m4-hardware/
|
# https://www.minifigboards.com/mini-sam-m4/mini-sam-m4-hardware/
|
||||||
MCU_SERIES = SAMD51
|
MCU_SERIES = SAMD51
|
||||||
CMSIS_MCU = SAMD51G19A
|
CMSIS_MCU = SAMD51G19A
|
||||||
LD_FILES = boards/samd51g19a.ld sections.ld
|
LD_FILES = boards/samd51x19a.ld sections.ld
|
||||||
TEXT0 = 0x4000
|
TEXT0 = 0x4000
|
||||||
|
|
||||||
# The ?='s allow overriding in mpconfigboard.mk.
|
# The ?='s allow overriding in mpconfigboard.mk.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
MCU_SERIES = SAMD51
|
MCU_SERIES = SAMD51
|
||||||
CMSIS_MCU = SAMD51P19A
|
CMSIS_MCU = SAMD51P19A
|
||||||
LD_FILES = boards/samd51p19a.ld sections.ld
|
LD_FILES = boards/samd51x19a.ld sections.ld
|
||||||
TEXT0 = 0x4000
|
TEXT0 = 0x4000
|
||||||
|
|
||||||
# The ?='s allow overriding in mpconfigboard.mk.
|
# The ?='s allow overriding in mpconfigboard.mk.
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
/*
|
|
||||||
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;
|
|
||||||
|
|
||||||
_oflash_fs = ORIGIN(FLASH) + 384K - 16K;
|
|
||||||
_sflash_fs = LENGTH(FLASH) - 384K + 16K - 1;
|
|
||||||
|
|
||||||
_sheap = _ebss;
|
|
||||||
_eheap = _sstack;
|
|
|
@ -1,20 +0,0 @@
|
||||||
/*
|
|
||||||
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;
|
|
||||||
|
|
||||||
_oflash_fs = ORIGIN(FLASH) + 384K - 16K;
|
|
||||||
_sflash_fs = LENGTH(FLASH) - 384K + 16K - 1;
|
|
||||||
|
|
||||||
_sheap = _ebss;
|
|
||||||
_eheap = _sstack;
|
|
Loading…
Reference in New Issue