Skip to content

Commit 6bfa10d

Browse files
committed
STM32F4: STM32Cube_FW_F4_V1.26.0 - Subfamilies
1 parent f05164a commit 6bfa10d

File tree

273 files changed

+46280
-3217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+46280
-3217
lines changed
Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,51 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
add_subdirectory(TARGET_MTS_DRAGONFLY_F411RE EXCLUDE_FROM_ALL)
5-
add_subdirectory(TARGET_MTS_MDOT_F411RE EXCLUDE_FROM_ALL)
64
add_subdirectory(TARGET_STM32F401xC EXCLUDE_FROM_ALL)
5+
add_subdirectory(TARGET_STM32F401xB EXCLUDE_FROM_ALL)
76
add_subdirectory(TARGET_STM32F401xE EXCLUDE_FROM_ALL)
7+
add_subdirectory(TARGET_STM32F401xD EXCLUDE_FROM_ALL)
8+
add_subdirectory(TARGET_STM32F405xG EXCLUDE_FROM_ALL)
9+
add_subdirectory(TARGET_STM32F405xE EXCLUDE_FROM_ALL)
810
add_subdirectory(TARGET_STM32F407xE EXCLUDE_FROM_ALL)
911
add_subdirectory(TARGET_STM32F407xG EXCLUDE_FROM_ALL)
12+
add_subdirectory(TARGET_STM32F410x8 EXCLUDE_FROM_ALL)
1013
add_subdirectory(TARGET_STM32F410xB EXCLUDE_FROM_ALL)
1114
add_subdirectory(TARGET_STM32F411xE EXCLUDE_FROM_ALL)
15+
add_subdirectory(TARGET_STM32F411xC EXCLUDE_FROM_ALL)
16+
add_subdirectory(TARGET_STM32F412xE EXCLUDE_FROM_ALL)
1217
add_subdirectory(TARGET_STM32F412xG EXCLUDE_FROM_ALL)
1318
add_subdirectory(TARGET_STM32F413xH EXCLUDE_FROM_ALL)
19+
add_subdirectory(TARGET_STM32F413xG EXCLUDE_FROM_ALL)
20+
add_subdirectory(TARGET_STM32F415xx EXCLUDE_FROM_ALL)
21+
add_subdirectory(TARGET_STM32F417xE EXCLUDE_FROM_ALL)
22+
add_subdirectory(TARGET_STM32F417xG EXCLUDE_FROM_ALL)
23+
add_subdirectory(TARGET_STM32F423xx EXCLUDE_FROM_ALL)
24+
add_subdirectory(TARGET_STM32F427xI EXCLUDE_FROM_ALL)
25+
add_subdirectory(TARGET_STM32F427xG EXCLUDE_FROM_ALL)
26+
add_subdirectory(TARGET_STM32F429xG EXCLUDE_FROM_ALL)
1427
add_subdirectory(TARGET_STM32F429xI EXCLUDE_FROM_ALL)
28+
add_subdirectory(TARGET_STM32F437xI EXCLUDE_FROM_ALL)
1529
add_subdirectory(TARGET_STM32F437xG EXCLUDE_FROM_ALL)
30+
add_subdirectory(TARGET_STM32F439xG EXCLUDE_FROM_ALL)
1631
add_subdirectory(TARGET_STM32F439xI EXCLUDE_FROM_ALL)
32+
add_subdirectory(TARGET_STM32F446xC EXCLUDE_FROM_ALL)
1733
add_subdirectory(TARGET_STM32F446xE EXCLUDE_FROM_ALL)
1834
add_subdirectory(TARGET_STM32F469xI EXCLUDE_FROM_ALL)
35+
add_subdirectory(TARGET_STM32F469xG EXCLUDE_FROM_ALL)
36+
add_subdirectory(TARGET_STM32F469xE EXCLUDE_FROM_ALL)
37+
add_subdirectory(TARGET_STM32F479xI EXCLUDE_FROM_ALL)
38+
add_subdirectory(TARGET_STM32F479xG EXCLUDE_FROM_ALL)
39+
1940
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
2041

2142
add_library(mbed-stm32f4 INTERFACE)
2243

44+
target_include_directories(mbed-stm32f4
45+
INTERFACE
46+
.
47+
)
48+
2349
target_sources(mbed-stm32f4
2450
INTERFACE
2551
analogin_device.c
@@ -31,9 +57,4 @@ target_sources(mbed-stm32f4
3157
spi_api.c
3258
)
3359

34-
target_include_directories(mbed-stm32f4
35-
INTERFACE
36-
.
37-
)
38-
3960
target_link_libraries(mbed-stm32f4 INTERFACE mbed-stm mbed-stm32f4cube-fw)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
5+
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f401xc.S)
6+
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32f401xb.ld)
7+
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
8+
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f401xc.S)
9+
set(LINKER_FILE TOOLCHAIN_ARM/stm32f401xb.sct)
10+
endif()
11+
12+
add_library(mbed-stm32f401xb INTERFACE)
13+
14+
target_include_directories(mbed-stm32f401xb
15+
INTERFACE
16+
.
17+
)
18+
19+
target_sources(mbed-stm32f401xb
20+
INTERFACE
21+
${STARTUP_FILE}
22+
)
23+
24+
mbed_set_linker_script(mbed-stm32f401xb ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
25+
26+
target_link_libraries(mbed-stm32f401xb INTERFACE mbed-stm32f4)

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xB/TOOLCHAIN_ARM/startup_stm32f401xc.S

Lines changed: 332 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/TOOLCHAIN_ARM/stm32f469xx.sct renamed to targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xB/TOOLCHAIN_ARM/stm32f401xb.sct

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
#define MBED_APP_SIZE MBED_ROM_SIZE
2626
#endif
2727

28-
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
2928
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
30-
# if defined(MBED_BOOT_STACK_SIZE)
31-
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
32-
# else
33-
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
34-
# endif
29+
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
30+
#if defined(MBED_BOOT_STACK_SIZE)
31+
#define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
32+
#else
33+
#define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
34+
#endif
3535
#endif
3636

3737
/* Round up VECTORS_SIZE to 8 bytes */

0 commit comments

Comments
 (0)