Skip to content

Commit

Permalink
ci(pio): update to CMSIS 5.9.0
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Aug 9, 2023
1 parent 38a6b86 commit 451eda8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/actions/pio-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This action build thanks PIO.

### `cmsis-version`

The CMSIS version to use. Default `"5.7.0"`.
The CMSIS version to use. Default `"5.9.0"`.

## Example usage

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/pio-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 'Compile using PlatformIO'
inputs:
cmsis-version:
description: 'CMSIS package version to use'
default: '5.7.0'
default: '5.9.0'
runs:
using: 'docker'
image: 'Dockerfile'
Expand Down
13 changes: 0 additions & 13 deletions tools/platformio/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,6 @@ def process_usb_configuration(cpp_defines):
env.Append(CPPDEFINES=["HAL_PCD_MODULE_ENABLED"])


def get_arm_math_lib(cpu):
if "m33" in cpu:
return "arm_ARMv8MMLlfsp_math"
elif "m4" in cpu:
return "arm_cortexM4lf_math"
elif "m7" in cpu:
return "arm_cortexM7lfsp_math"

return "arm_cortex%sl_math" % cpu[7:9].upper()


def configure_application_offset(mcu, upload_protocol):
offset = 0

Expand Down Expand Up @@ -340,13 +329,11 @@ def get_arduino_board_id(board_config, mcu):
% board_config.get("upload.maximum_ram_size"),
],
LIBS=[
get_arm_math_lib(board_config.get("build.cpu")),
"c",
"m",
"gcc",
"stdc++",
],
LIBPATH=[join(CMSIS_DIR, "DSP", "Lib", "GCC")],
)

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

0 comments on commit 451eda8

Please sign in to comment.