Skip to content

Enable Mbed OS PSA #65

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

Merged
merged 2 commits into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,15 @@ matrix:
- <<: *cmake-build-test
name: "CMake atecc608a example - debug (K64F)"
env: NAME=cmake_test TARGET_NAME=K64F PROFILE=debug CACHE_NAME=debug-K64F

- <<: *cmake-build-test
name: "CMake atecc608a example - develop (NRF52_DK)"
env: NAME=cmake_test TARGET_NAME=NRF52_DK PROFILE=develop CACHE_NAME=develop-NRF52_DK

- <<: *cmake-build-test
name: "CMake atecc608a example - release (NRF52_DK)"
env: NAME=cmake_test TARGET_NAME=NRF52_DK PROFILE=release CACHE_NAME=release-NRF52_DK

- <<: *cmake-build-test
name: "CMake atecc608a example - debug (NRF52_DK)"
env: NAME=cmake_test TARGET_NAME=NRF52_DK PROFILE=debug CACHE_NAME=debug-NRF52_DK
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 implementation
(e.g. Arm TrustZone on Arm v8-M).

## Mbed OS build tools

### Mbed CLI 2
Expand Down
7 changes: 2 additions & 5 deletions atecc608a/mbed_app.json
Original file line number Diff line number Diff line change
@@ -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.

"platform.stdio-baud-rate": 9600,
"platform.stdio-convert-newlines": true,
"mbed-trace.enable": 0
},
"NRF52_DK": {
"cryptoauthlib.i2c_sda": "P0_26",
"cryptoauthlib.i2c_scl": "P0_27"
},
"SAML21J18A": {
"cryptoauthlib.i2c_sda": "PA08",
"cryptoauthlib.i2c_scl": "PA09"
}
},
"macros": [
Expand Down