diff --git a/cpu/stm32f3/include/cpu_conf.h b/cpu/stm32f3/include/cpu_conf.h index cf59fb03b3..cab91ac8b9 100644 --- a/cpu/stm32f3/include/cpu_conf.h +++ b/cpu/stm32f3/include/cpu_conf.h @@ -24,16 +24,13 @@ #include "cpu_conf_common.h" -#ifdef CPU_MODEL_STM32F303VC +#if defined(CPU_MODEL_STM32F303VC) #include "vendor/stm32f303xc.h" -#endif -#ifdef CPU_MODEL_STM32F334R8 +#elif defined(CPU_MODEL_STM32F334R8) #include "vendor/stm32f334x8.h" -#endif -#ifdef CPU_MODEL_STM32F303RE +#elif defined(CPU_MODEL_STM32F303RE) || defined(CPU_MODEL_STM32F303ZE) #include "vendor/stm32f303xe.h" -#endif -#ifdef CPU_MODEL_STM32F303K8 +#elif defined(CPU_MODEL_STM32F303K8) #include "vendor/stm32f303x8.h" #endif #ifdef CPU_MODEL_STM32F302R8 diff --git a/cpu/stm32f3/ldscripts/stm32f303ze.ld b/cpu/stm32f3/ldscripts/stm32f303ze.ld new file mode 100644 index 0000000000..cb0c3af3af --- /dev/null +++ b/cpu/stm32f3/ldscripts/stm32f303ze.ld @@ -0,0 +1,31 @@ +/* + * 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_stm32f3 + * @{ + * + * @file + * @brief Memory definitions for the STM32F303ZE + * + * @author Alexandre Abadie + * + * @} + */ + +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K + ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 16K + cpuid (r) : ORIGIN = 0x1ffff7ac, LENGTH = 12 +} + +_cpuid_address = ORIGIN(cpuid); + +INCLUDE cortexm_base.ld