From 3ed0375c8dee4954bc0afb5fc359785aed36ab0c Mon Sep 17 00:00:00 2001 From: Pushpal Sidhu Date: Thu, 7 Dec 2017 14:03:07 -0800 Subject: [PATCH] arch: arm: mpu: add support for 640k SRAM The STM32L4+ parts have 640k of SRAM. Signed-off-by: Pushpal Sidhu --- soc/arm/st_stm32/common/arm_mpu_mem_cfg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/arm/st_stm32/common/arm_mpu_mem_cfg.h b/soc/arm/st_stm32/common/arm_mpu_mem_cfg.h index ca0a373577d..c48e59c89eb 100644 --- a/soc/arm/st_stm32/common/arm_mpu_mem_cfg.h +++ b/soc/arm/st_stm32/common/arm_mpu_mem_cfg.h @@ -73,6 +73,10 @@ #define REGION_SRAM_0_SIZE REGION_256K #define REGION_SRAM_1_START 0x40000 #define REGION_SRAM_1_SIZE REGION_128K +#elif CONFIG_SRAM_SIZE == 640 +#define REGION_SRAM_0_SIZE REGION_512K +#define REGION_SRAM_1_START 0x80000 +#define REGION_SRAM_1_SIZE REGION_128K #else #error "Unsupported configuration" #endif