Skip to content

Commit

Permalink
Merge pull request #65 from LDong-Arm/mbed_psa_requirement
Browse files Browse the repository at this point in the history
Enable Mbed OS PSA
  • Loading branch information
Patater authored May 13, 2021
2 parents 9833cd8 + a585a4f commit 656b46b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
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"],
"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

0 comments on commit 656b46b

Please sign in to comment.