soc: stm32wb55: allow non 812k flash size
stm32wb55 cold be: 1m, 512k, 256k Signed-off-by: Pavlo Hamov <pavlo_hamov@jabil.com>
This commit is contained in:
parent
9e473f9fea
commit
248bd50db5
1 changed files with 2 additions and 6 deletions
|
@ -10,7 +10,6 @@
|
||||||
#include <arch/arm/cortex_m/mpu/arm_mpu.h>
|
#include <arch/arm/cortex_m/mpu/arm_mpu.h>
|
||||||
|
|
||||||
/* Flash Region Definitions */
|
/* Flash Region Definitions */
|
||||||
#if !defined(CONFIG_SOC_SERIES_STM32WBX)
|
|
||||||
#if CONFIG_FLASH_SIZE == 64
|
#if CONFIG_FLASH_SIZE == 64
|
||||||
#define REGION_FLASH_SIZE REGION_64K
|
#define REGION_FLASH_SIZE REGION_64K
|
||||||
#elif CONFIG_FLASH_SIZE == 128
|
#elif CONFIG_FLASH_SIZE == 128
|
||||||
|
@ -26,18 +25,15 @@
|
||||||
#elif CONFIG_FLASH_SIZE == 2048
|
#elif CONFIG_FLASH_SIZE == 2048
|
||||||
#define REGION_FLASH_SIZE REGION_2M
|
#define REGION_FLASH_SIZE REGION_2M
|
||||||
#else
|
#else
|
||||||
#error "Unsupported configuration"
|
|
||||||
#endif
|
|
||||||
#else /* CONFIG_SOC_SERIES_STM32WBX */
|
|
||||||
/* For STM32WBX SoCs, last 212K are resevred for M0 fw */
|
/* For STM32WBX SoCs, last 212K are resevred for M0 fw */
|
||||||
/* and should not be covered by zephyr MPU. */
|
/* and should not be covered by zephyr MPU. */
|
||||||
/* So map only the first 512K, which is beyond partition 'image-0' */
|
/* So map only the first 512K, which is beyond partition 'image-0' */
|
||||||
#if CONFIG_FLASH_SIZE == 812
|
#if defined(CONFIG_SOC_SERIES_STM32WBX) && (CONFIG_FLASH_SIZE == 812)
|
||||||
#define REGION_FLASH_SIZE REGION_1M
|
#define REGION_FLASH_SIZE REGION_1M
|
||||||
#else
|
#else
|
||||||
#error "Unsupported configuration"
|
#error "Unsupported configuration"
|
||||||
#endif
|
|
||||||
#endif /* CONFIG_SOC_SERIES_STM32WBX */
|
#endif /* CONFIG_SOC_SERIES_STM32WBX */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* SRAM Region Definitions */
|
/* SRAM Region Definitions */
|
||||||
#if CONFIG_SRAM_SIZE == 12
|
#if CONFIG_SRAM_SIZE == 12
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue