Skip to content

Commit 5969105

Browse files
committed
add missing f4 board.cmake
1 parent 2a0b51b commit 5969105

File tree

6 files changed

+56
-1
lines changed

6 files changed

+56
-1
lines changed

.github/workflows/build_util.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
if: inputs.toolchain != 'esp-idf'
5353
run: |
5454
if [[ ${{ inputs.build-system }} == cmake ]]; then
55-
cmake -B build -G Ninja -DBOARD=${{ matrix.board }} ports/${{ inputs.port }}
55+
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DBOARD=${{ matrix.board }} ports/${{ inputs.port }}
5656
cmake --build build
5757
else
5858
make -C ports/${{ inputs.port }} BOARD=${{ matrix.board }} all self-update copy-artifact
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(JLINK_DEVICE stm32f405rg)
2+
3+
function(update_board TARGET)
4+
target_sources(${TARGET} PUBLIC
5+
${ST_CMSIS}/Source/Templates/gcc/startup_stm32f405xx.s
6+
)
7+
target_compile_definitions(${TARGET} PUBLIC
8+
STM32F405xx
9+
HSE_VALUE=12000000U
10+
)
11+
endfunction()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(JLINK_DEVICE stm32f405rg)
2+
3+
function(update_board TARGET)
4+
target_sources(${TARGET} PUBLIC
5+
${ST_CMSIS}/Source/Templates/gcc/startup_stm32f405xx.s
6+
)
7+
target_compile_definitions(${TARGET} PUBLIC
8+
STM32F405xx
9+
HSE_VALUE=12000000U
10+
)
11+
endfunction()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(JLINK_DEVICE stm32f405rg)
2+
3+
function(update_board TARGET)
4+
target_sources(${TARGET} PUBLIC
5+
${ST_CMSIS}/Source/Templates/gcc/startup_stm32f405xx.s
6+
)
7+
target_compile_definitions(${TARGET} PUBLIC
8+
STM32F405xx
9+
HSE_VALUE=12000000U
10+
)
11+
endfunction()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(JLINK_DEVICE stm32f411ce)
2+
3+
function(update_board TARGET)
4+
target_sources(${TARGET} PUBLIC
5+
${ST_CMSIS}/Source/Templates/gcc/startup_stm32f411xe.s
6+
)
7+
target_compile_definitions(${TARGET} PUBLIC
8+
STM32F411xE
9+
HSE_VALUE=25000000U
10+
)
11+
endfunction()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(JLINK_DEVICE stm32f401cc)
2+
3+
function(update_board TARGET)
4+
target_sources(${TARGET} PUBLIC
5+
${ST_CMSIS}/Source/Templates/gcc/startup_stm32f401xc.s
6+
)
7+
target_compile_definitions(${TARGET} PUBLIC
8+
STM32F401xC
9+
HSE_VALUE=25000000U
10+
)
11+
endfunction()

0 commit comments

Comments
 (0)