From eef753a933ee90839c8d531fae8818c922d2dcdd Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 22 Sep 2017 19:07:31 +0200 Subject: [PATCH] cpu/sam0: adapt support for samd21j18a with bootloader --- .../samd21j18a_arduino_bootloader.ld | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cpu/sam0_common/ldscripts/samd21j18a_arduino_bootloader.ld diff --git a/cpu/sam0_common/ldscripts/samd21j18a_arduino_bootloader.ld b/cpu/sam0_common/ldscripts/samd21j18a_arduino_bootloader.ld new file mode 100644 index 0000000000..fe56ad6df8 --- /dev/null +++ b/cpu/sam0_common/ldscripts/samd21j18a_arduino_bootloader.ld @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2017 Inria + * + * 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_samd21 + * @{ + * + * @file + * @brief Memory definitions for the SAMD21J18A with Arduino bootloader + * + * @author Alexandre Abadie + * + * @} + */ + +MEMORY +{ + rom (rx) : ORIGIN = 0x00002000, LENGTH = 256K-0x2000 + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K +} + +INCLUDE cortexm_base.ld