Skip to content

Commit 2b553ba

Browse files
rriveramcruskartben
authored andcommitted
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 <[email protected]>
1 parent 0032951 commit 2b553ba

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

soc/st/stm32/soc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ family:
4343
- name: stm32f4x
4444
socs:
4545
- name: stm32f401xc
46+
- name: stm32f401xd
4647
- name: stm32f401xe
4748
- name: stm32f405xx
4849
- name: stm32f407xx
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ST STM32F401xD MCU configuration options
2+
3+
# Copyright (c) 2025 Cirrus Logic, Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_STM32F401XD
7+
8+
config NUM_IRQS
9+
default 85
10+
11+
endif # SOC_STM32F401XD

soc/st/stm32/stm32f4x/Kconfig.soc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ config SOC_STM32F401XC
1414
bool
1515
select SOC_SERIES_STM32F4X
1616

17+
config SOC_STM32F401XD
18+
bool
19+
select SOC_SERIES_STM32F4X
20+
1721
config SOC_STM32F401XE
1822
bool
1923
select SOC_SERIES_STM32F4X
@@ -100,6 +104,7 @@ config SOC_STM32F479XX
100104

101105
config SOC
102106
default "stm32f401xc" if SOC_STM32F401XC
107+
default "stm32f401xd" if SOC_STM32F401XD
103108
default "stm32f401xe" if SOC_STM32F401XE
104109
default "stm32f405xx" if SOC_STM32F405XX
105110
default "stm32f407xx" if SOC_STM32F407XE

0 commit comments

Comments
 (0)