diff --git a/cpu/sam_common/Makefile.include b/cpu/sam_common/Makefile.include index ff1e3f42ca..103ee94dd7 100644 --- a/cpu/sam_common/Makefile.include +++ b/cpu/sam_common/Makefile.include @@ -4,7 +4,12 @@ CFLAGS += -DCPU_FAM_$(call uppercase_and_underscore,$(CPU_FAM)) # this CPU implementation doesn't use CMSIS initialization CFLAGS += -DDONT_USE_CMSIS_INIT -# for the sam[drl] CPUs we hold all linkerscripts in the sam0 common folder -LINKFLAGS += -L$(RIOTCPU)/sam_common/ldscripts +ROM_START_ADDR ?= 0x80000 +RAM_START_ADDR ?= 0x20070000 + +ROM_LEN ?= 0x80000 +RAM_LEN ?= 0x18000 + +LINKER_SCRIPT ?= cortexm.ld INCLUDES += -I$(RIOTCPU)/sam_common/include diff --git a/cpu/sam_common/ldscripts/sam3x8e.ld b/cpu/sam_common/ldscripts/sam3x8e.ld deleted file mode 100644 index 0a9d6ddc8b..0000000000 --- a/cpu/sam_common/ldscripts/sam3x8e.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_sam3 - * @{ - * - * @file - * @brief Memory definitions for the SAM3X8E - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x00080000, LENGTH = 512K - ram (w!rx) : ORIGIN = 0x20070000, LENGTH = 96K -} - -INCLUDE cortexm_base.ld