Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to TF-M v1.4 #14977

Closed
Tracked by #14967
Patater opened this issue Aug 4, 2021 · 4 comments · Fixed by #15050
Closed
Tracked by #14967

Upgrade to TF-M v1.4 #14977

Patater opened this issue Aug 4, 2021 · 4 comments · Fixed by #15050

Comments

@Patater
Copy link
Contributor

Patater commented Aug 4, 2021

No description provided.

@LDong-Arm
Copy link
Contributor

LDong-Arm commented Aug 31, 2021

Dependencies:

Notes

  • Use the latest GCC (10.3) and Arm (6.16) compilers. Older GCCs may not fully support certain v8m features.
  • Musca targets: As a convention, the prebuilt images committed into Mbed OS are built by the Arm Compiler.
  • NU_M2354: Commit binaries built by GCC 10.3 into Mbed OS.
  • The TF-M binaries seem to be different between a pure TF-M build vs TF-M built alongside tests.
  • Update hardcoded TF-M version in targets/TARGET_NUVOTON/scripts/NUVOTON.py and tools/targets/NU_M2354.py
  • Targets: ARM_MUSCA_S1, ARM_MUSCA_B1, NU_M2354.
  • Update Mbed TLS to 3.0.0. This may come after update of TF-M v1.4.0 is merged. (Task: Upgrade Mbed TLS to 3.0.0 to align with the version shipped by TF-M v1.4.0 #15049)
  • Fix Musca B1/S1: memory layout headers out of date #14762

Verification

  • Pure builds of both toolchains & all three targets & Mbed CLI 1 and 2. Tested with mbed-os-example-psa.
  • TF-M regression & PSA compliance tests, both toolchains & all three targets.
  • Tested locally and in the nightly CI: build & run all three targets

@ccli8
Copy link
Contributor

ccli8 commented Sep 1, 2021

As a convention, the prebuilt images committed into Mbed OS is built by the Arm Compiler.

Would you build for M2354 with GCC (10.3)? Our company doesn't license latest Arm (6.16) compiler.

Update hardcoded TF-M version in targets/TARGET_NUVOTON/scripts/NUVOTON.py

And also in tools/targets/NU_M2354.py.

@LDong-Arm
Copy link
Contributor

LDong-Arm commented Sep 1, 2021

@ccli8 I'll edit the list to use GCC 10.3 for prebuilt binaries for NU_M2354. @rwalton-arm FYI.

On our side, we'll build with both GCC 10.3 and Arm Compiler 6.16 to make sure compilation works.

@LDong-Arm
Copy link
Contributor

@ccli8 We've found an NU_M2354 board so we'll be able to test it ourselves first. But we'll let you know our pull requests, thanks in advance.

@rwalton-arm rwalton-arm linked a pull request Sep 10, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants