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

Enable Mbed OS PSA #65

Merged
merged 2 commits into from
May 13, 2021
Merged

Conversation

LDong-Arm
Copy link
Contributor

@LDong-Arm LDong-Arm commented May 11, 2021

Enable Mbed OS PSA

README.md:

  • Document the fact that this example enables Mbed OS PSA which cannot coexist with TF-M.

atecc608a/mbed_app/json:

  • Remove SAML21J18A which is not supported by the latest Mbed OS.
  • Enable Mbed OS PSA required by the example.

.travis.yml:

  • Add NRF52_DK

@LDong-Arm LDong-Arm requested a review from a team May 11, 2021 10:47
@LDong-Arm
Copy link
Contributor Author

The compilation is okay with review suggestions in ARMmbed/mbed-os#14652

@LDong-Arm LDong-Arm force-pushed the mbed_psa_requirement branch 2 times, most recently from 4e4633c to dcfe4c4 Compare May 11, 2021 15:31
@LDong-Arm LDong-Arm changed the title Clarify Mbed OS PSA requirement Enable Mbed OS PSA May 11, 2021
@LDong-Arm
Copy link
Contributor Author

Now ready for review

README.md Outdated
@@ -9,6 +9,9 @@ The examples in this repository demonstrate how to use the ATECC608A secure elem

A target with I2C and power supply connections, connected to an ATECC608A secure element as shown in [Hardware interface](#hardware-interface).

Note: This example enables Mbed OS PSA. It is _not_ suitable for or compatible with TF-M which has its own PSA implementations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- implementations
+ implementation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

README.md:
* Document the fact that this example enables Mbed OS PSA which
cannot coexist with TF-M.

atecc608a/mbed_app/json:
* Remove SAML21J18A which is not supported by the latest Mbed OS.
* Enable Mbed OS PSA required by the example.
By default, Mbed OS PSA is only enabled on K64F and K66F. This
example overrides the configuration to globally enable Mbed OS PSA
as needed.

We build NRF52_DK in Travis to verify this override. This target was
chosen because the pins for atecc608a are already provided in
`mbed_app.json`.
@Patater Patater merged commit 656b46b into ARMmbed:development May 13, 2021
@@ -1,18 +1,15 @@
{
"target_overrides": {
"*": {
"target.features_add" : ["EXPERIMENTAL_API"],
"target.features_add" : ["EXPERIMENTAL_API", "PSA"],
"extra_labels_add": ["MBED_PSA_SRV"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ERROR] Attempt to override undefined parameter 'app.extra_labels_add' in 'application[*]' [mbed] Working path "/builds/workspace/mbed-os-ci_build-example-GCC_ARM/examples/mbed-os-example-atecc608a/atecc608a" (program). This should be target.extra_labels_add

This is from Mbed OS master testing (see the last PR log ARMmbed/mbed-os#14661 (comment)).

Copy link
Contributor Author

@LDong-Arm LDong-Arm May 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm working on this. Somehow even with target missing it works with Mbed CLI 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants