From 38811288848dc54414ebcc6739bdd5edcd2e85e5 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 12 Apr 2018 15:03:47 +0200 Subject: [PATCH] cpu/stm32_common: extend memory lengths support --- cpu/stm32_common/stm32_mem_lengths.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu/stm32_common/stm32_mem_lengths.mk b/cpu/stm32_common/stm32_mem_lengths.mk index 68f7268cdd..8d2298d967 100644 --- a/cpu/stm32_common/stm32_mem_lengths.mk +++ b/cpu/stm32_common/stm32_mem_lengths.mk @@ -5,7 +5,7 @@ RAM_START_ADDR ?= 0x20000000 # The next block takes care of setting the rigth lengths of RAM and ROM # for the stm32 family. Most of the CPUs should have been taken into # account here, so no need to assign the lengths per model. -STM32_INFO := $(shell printf '%s' '$(CPU_MODEL)' | tr 'a-z' 'A-Z' | sed -E -e 's/^STM32(F|L)(0|1|2|3|4|7)([0-9])([0-9])(.)(.)/\1 \2 \2\3\4 \3 \4 \5 \6/') +STM32_INFO := $(shell printf '%s' '$(CPU_MODEL)' | tr 'a-z' 'A-Z' | sed -E -e 's/^STM32(F|L)(0|1|2|3|4|7)([A-Z0-9])([0-9])(.)(.)/\1 \2 \2\3\4 \3 \4 \5 \6/') STM32_TYPE := $(word 1, $(STM32_INFO)) STM32_FAMILY := $(word 2, $(STM32_INFO)) STM32_MODEL := $(word 3, $(STM32_INFO)) @@ -240,6 +240,8 @@ else ifeq ($(STM32_TYPE), L) RAM_LEN = 160K else ifeq ($(STM32_MODEL2), 9) RAM_LEN = 320K + else ifeq ($(STM32_MODEL2), R) + RAM_LEN = 640K endif endif endif