From 2b553ba74f26343983926dd1c633bdb8c5c0bc64 Mon Sep 17 00:00:00 2001 From: Ricardo Rivera-Matos Date: Fri, 18 Apr 2025 12:01:26 -0500 Subject: [PATCH] soc: stm32: Adds support for STM32F401XD variants Introduces config file entries for STM32F401XD variants. The STM32F401XD family is related to the STM32F401XE family but with a reduced flash memory. Signed-off-by: Ricardo Rivera-Matos --- soc/st/stm32/soc.yml | 1 + soc/st/stm32/stm32f4x/Kconfig.defconfig.stm32f401xd | 11 +++++++++++ soc/st/stm32/stm32f4x/Kconfig.soc | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 soc/st/stm32/stm32f4x/Kconfig.defconfig.stm32f401xd diff --git a/soc/st/stm32/soc.yml b/soc/st/stm32/soc.yml index d4184f77b2c..5b74c7a43ef 100644 --- a/soc/st/stm32/soc.yml +++ b/soc/st/stm32/soc.yml @@ -43,6 +43,7 @@ family: - name: stm32f4x socs: - name: stm32f401xc + - name: stm32f401xd - name: stm32f401xe - name: stm32f405xx - name: stm32f407xx diff --git a/soc/st/stm32/stm32f4x/Kconfig.defconfig.stm32f401xd b/soc/st/stm32/stm32f4x/Kconfig.defconfig.stm32f401xd new file mode 100644 index 00000000000..cb1bbb16201 --- /dev/null +++ b/soc/st/stm32/stm32f4x/Kconfig.defconfig.stm32f401xd @@ -0,0 +1,11 @@ +# ST STM32F401xD MCU configuration options + +# Copyright (c) 2025 Cirrus Logic, Inc. +# SPDX-License-Identifier: Apache-2.0 + +if SOC_STM32F401XD + +config NUM_IRQS + default 85 + +endif # SOC_STM32F401XD diff --git a/soc/st/stm32/stm32f4x/Kconfig.soc b/soc/st/stm32/stm32f4x/Kconfig.soc index 3ee84f5fb5d..31045403450 100644 --- a/soc/st/stm32/stm32f4x/Kconfig.soc +++ b/soc/st/stm32/stm32f4x/Kconfig.soc @@ -14,6 +14,10 @@ config SOC_STM32F401XC bool select SOC_SERIES_STM32F4X +config SOC_STM32F401XD + bool + select SOC_SERIES_STM32F4X + config SOC_STM32F401XE bool select SOC_SERIES_STM32F4X @@ -100,6 +104,7 @@ config SOC_STM32F479XX config SOC default "stm32f401xc" if SOC_STM32F401XC + default "stm32f401xd" if SOC_STM32F401XD default "stm32f401xe" if SOC_STM32F401XE default "stm32f405xx" if SOC_STM32F405XX default "stm32f407xx" if SOC_STM32F407XE