Skip to content

Commit 451eda8

Browse files
committed
ci(pio): update to CMSIS 5.9.0
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 38a6b86 commit 451eda8

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

.github/actions/pio-build/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This action build thanks PIO.
66

77
### `cmsis-version`
88

9-
The CMSIS version to use. Default `"5.7.0"`.
9+
The CMSIS version to use. Default `"5.9.0"`.
1010

1111
## Example usage
1212

.github/actions/pio-build/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: 'Compile using PlatformIO'
44
inputs:
55
cmsis-version:
66
description: 'CMSIS package version to use'
7-
default: '5.7.0'
7+
default: '5.9.0'
88
runs:
99
using: 'docker'
1010
image: 'Dockerfile'

tools/platformio/platformio-build.py

-13
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,6 @@ def process_usb_configuration(cpp_defines):
115115
env.Append(CPPDEFINES=["HAL_PCD_MODULE_ENABLED"])
116116

117117

118-
def get_arm_math_lib(cpu):
119-
if "m33" in cpu:
120-
return "arm_ARMv8MMLlfsp_math"
121-
elif "m4" in cpu:
122-
return "arm_cortexM4lf_math"
123-
elif "m7" in cpu:
124-
return "arm_cortexM7lfsp_math"
125-
126-
return "arm_cortex%sl_math" % cpu[7:9].upper()
127-
128-
129118
def configure_application_offset(mcu, upload_protocol):
130119
offset = 0
131120

@@ -340,13 +329,11 @@ def get_arduino_board_id(board_config, mcu):
340329
% board_config.get("upload.maximum_ram_size"),
341330
],
342331
LIBS=[
343-
get_arm_math_lib(board_config.get("build.cpu")),
344332
"c",
345333
"m",
346334
"gcc",
347335
"stdc++",
348336
],
349-
LIBPATH=[join(CMSIS_DIR, "DSP", "Lib", "GCC")],
350337
)
351338

352339
env.ProcessFlags(board_config.get("build.framework_extra_flags.arduino", ""))

0 commit comments

Comments
 (0)