From f63e64f4bc7097b4d41494d51198f41011e0daf0 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 30 Nov 2025 08:34:20 +1100 Subject: [PATCH] tools/ci.sh: Install latest ARM toolchain for stm32 CI. This is needed to build Cortex-M55 (STM32N6) based boards. Signed-off-by: Damien George --- .github/workflows/ports_stm32.yml | 2 +- tools/ci.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ports_stm32.yml b/.github/workflows/ports_stm32.yml index 45aa0c6130..2ed730eb4e 100644 --- a/.github/workflows/ports_stm32.yml +++ b/.github/workflows/ports_stm32.yml @@ -30,7 +30,7 @@ jobs: steps: - uses: actions/checkout@v6 - name: Install packages - run: tools/ci.sh stm32_setup + run: tools/ci.sh stm32_setup && tools/ci.sh stm32_path >> $GITHUB_PATH - name: Build ci_${{matrix.ci_func }} run: tools/ci.sh ${{ matrix.ci_func }} diff --git a/tools/ci.sh b/tools/ci.sh index e34940f758..eb658400b4 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -494,12 +494,19 @@ function ci_samd_build { # ports/stm32 function ci_stm32_setup { - ci_gcc_arm_setup + # Use a recent version of the ARM toolchain, to work with Cortex-M55. + wget https://developer.arm.com/-/media/Files/downloads/gnu/14.3.rel1/binrel/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi.tar.xz + xzcat arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi.tar.xz | tar x + pip3 install pyelftools pip3 install ar pip3 install pyhy } +function ci_stm32_path { + echo $(pwd)/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi/bin +} + function ci_stm32_pyb_build { make ${MAKEOPTS} -C mpy-cross make ${MAKEOPTS} -C ports/stm32 MICROPY_PY_NETWORK_WIZNET5K=5200 submodules