diff --git a/dts/arm/st/f4/stm32f401Xc.dtsi b/dts/arm/st/f4/stm32f401Xc.dtsi new file mode 100644 index 00000000000..3d733a124ae --- /dev/null +++ b/dts/arm/st/f4/stm32f401Xc.dtsi @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2019 Linumiz + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include + +/ { + sram0: memory@20000000 { + reg = <0x20000000 DT_SIZE_K(64)>; + }; + + soc { + flash-controller@40023c00 { + flash0: flash@8000000 { + reg = <0x08000000 DT_SIZE_K(256)>; + }; + }; + }; +}; diff --git a/soc/arm/st_stm32/stm32f4/Kconfig.defconfig.stm32f401xc b/soc/arm/st_stm32/stm32f4/Kconfig.defconfig.stm32f401xc new file mode 100644 index 00000000000..07b3931cfa3 --- /dev/null +++ b/soc/arm/st_stm32/stm32f4/Kconfig.defconfig.stm32f401xc @@ -0,0 +1,18 @@ +# Kconfig - ST STM32F401CC MCU configuration options +# +# Copyright (c) 2019 Linumiz +# +# SPDX-License-Identifier: Apache-2.0 +# + +if SOC_STM32F401XC + +config SOC + string + default "stm32f401xc" + +config NUM_IRQS + int + default 85 + +endif # SOC_STM32F401XC diff --git a/soc/arm/st_stm32/stm32f4/Kconfig.soc b/soc/arm/st_stm32/stm32f4/Kconfig.soc index c8075ed5f14..71531ee7486 100644 --- a/soc/arm/st_stm32/stm32f4/Kconfig.soc +++ b/soc/arm/st_stm32/stm32f4/Kconfig.soc @@ -9,6 +9,9 @@ choice prompt "STM32F4x MCU Selection" depends on SOC_SERIES_STM32F4X +config SOC_STM32F401XC + bool "STM32F401XC" + config SOC_STM32F401XE bool "STM32F401XE"