Skip to content

M2351: Support TFM level 1 #10959

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 12 commits into from
Jan 8, 2020
Merged

Conversation

ccli8
Copy link
Contributor

@ccli8 ccli8 commented Jul 4, 2019

Description

This PR adds TFM level 1 support on NUMAKER_PFM_M2351 target. It has the following major changes compared to no TFM integration:

  1. Target names for building TFM/non-TFM code:
    • NUMAKER_PFM_M2351_S: Target name for building M2351 TFM secure code
    • NUMAKER_PFM_M2351_NS: Target name for building M2351 TFM non-secure code
    • NUMAKER_PFM_M2351_NOPSA_S: Target name for building M2351 non-TFM secure code
    • NUMAKER_PFM_M2351_NOPSA_NS: Target name for building M2351 non-TFM non-secure code
  2. To disable pre-built secure image and provide custom one, remove NU_PREBUILD_SECURE from target.extra_labels in mbed_app.json like:
    "NUMAKER_PFM_M2351_NS": {
            "target.extra_labels_remove"        : ["NU_PREBUILD_SECURE"],
  3. Prior to TFM, the target name NUMAKER_PFM_M2351 is used for building non-TFM both secure/non-secure code via Nuvoton samples NuMaker-mbed-TZ-secure-example and NuMaker-mbed-TZ-nonsecure-example. Committed to keeping supporting non-TFM target, new target names NUMAKER_PFM_M2351_NOPSA_S / NUMAKER_PFM_M2351_NOPSA_NS are created to substitute for NUMAKER_PFM_M2351 to build non-TFM secure/non-secure code respectively. Their naming can be negotiated. After this PR is merged, the Nuvoton samples mentioned above will also update to reflect this change.
  4. Prior to TFM, there are two steps to flash secure/non-secure code: flash secure code first and then non-secure code. In this PR, as Add ARM_MUSCA_A1 target #9221, secure code and non-secure code are combined in non-secure code build process. Just flash the combined one.
  5. For TFM, no support for BL2 bootloader.
  6. For TFM, there are two outstanding issues Allow NS secure call at pre-rtos stage and Allow NS secure call in interrupt-disabled context. The latter is especially critical because a complete solution hasn't come out yet. This PR temporarily modifies TFM NS code tfm_ns_lock_rtx.c to address the interrupt-disabled scenario partially. Please skip this related code. The thorough solution needs further discussion.

Pull request type

[ ] Fix
[ ] Refactor
[x] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@ciarmcom ciarmcom requested review from Ronny-Liu and a team July 4, 2019 07:00
@ciarmcom
Copy link
Member

ciarmcom commented Jul 4, 2019

@ccli8, thank you for your changes.
@Ronny-Liu @ARMmbed/mbed-os-core @ARMmbed/mbed-os-tools @ARMmbed/mbed-os-maintainers @ARMmbed/mbed-os-storage please review.

@ccli8
Copy link
Contributor Author

ccli8 commented Jul 4, 2019

Greentea test on TFM target

mbedgt: test suite report:
| target                     | platform_name     | test suite                                                                           | result | elapsed_time (sec) | copy_method |
|----------------------------|-------------------|--------------------------------------------------------------------------------------|--------|--------------------|-------------|
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_attestation-test_a001                 | OK     | 44.19              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c001                      | OK     | 18.65              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c002                      | OK     | 19.02              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c003                      | OK     | 19.61              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c004                      | OK     | 19.24              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c005                      | OK     | 19.11              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c006                      | OK     | 19.53              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c007                      | OK     | 19.22              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c008                      | OK     | 19.31              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c009                      | OK     | 18.72              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c010                      | OK     | 18.94              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c011                      | OK     | 20.36              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c012                      | OK     | 19.42              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c013                      | OK     | 18.81              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c014                      | OK     | 18.81              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c015                      | OK     | 18.72              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c016                      | OK     | 18.76              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c017                      | OK     | 18.76              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c018                      | OK     | 18.7               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c019                      | OK     | 18.69              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c020                      | OK     | 18.81              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c021                      | OK     | 19.72              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c022                      | OK     | 18.91              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c023                      | OK     | 18.78              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c024                      | OK     | 18.91              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c025                      | OK     | 18.86              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c026                      | OK     | 18.67              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c027                      | OK     | 18.94              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c028                      | OK     | 18.94              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c029                      | OK     | 18.84              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c030                      | OK     | 19.06              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c031                      | OK     | 18.95              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c032                      | OK     | 19.14              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c033                      | OK     | 19.23              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c034                      | OK     | 18.73              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c035                      | OK     | 18.84              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c036                      | OK     | 18.8               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c037                      | OK     | 18.82              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c038                      | OK     | 18.85              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c039                      | OK     | 20.66              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c040                      | OK     | 24.7               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c041                      | OK     | 23.09              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c042                      | OK     | 22.66              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_crypto-test_c043                      | OK     | 26.73              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s001                         | OK     | 18.88              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s002                         | OK     | 19.08              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s004                         | OK     | 18.73              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s005                         | OK     | 18.7               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s006                         | OK     | 18.92              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s007                         | OK     | 18.88              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s008                         | OK     | 18.83              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s009                         | OK     | 18.83              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-components-target_psa-tests-compliance_its-test_s010                         | OK     | 18.77              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-device_key-tests-device_key-functionality                           | OK     | 22.33              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-basic_test                        | OK     | 18.28              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-basic_test_default                | OK     | 18.09              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-case_async_validate               | OK     | 18.91              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-case_control_async                | OK     | 22.28              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-case_control_repeat               | OK     | 18.47              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-case_selection                    | OK     | 18.23              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-case_setup_failure                | OK     | 18.22              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-case_teardown_failure             | OK     | 18.47              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-control_type                      | OK     | 18.66              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-minimal_async_scheduler           | OK     | 18.63              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-minimal_scheduler                 | OK     | 18.44              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-test_assertion_failure_test_setup | OK     | 18.17              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-test_setup_case_selection_failure | OK     | 18.3               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-test_setup_failure                | OK     | 18.17              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-frameworks-utest-tests-unit_tests-test_skip                         | OK     | 18.26              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-nvstore-tests-nvstore-functionality                         | OK     | 37.62              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-blockdevice-buffered_block_device                     | OK     | 18.76              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-blockdevice-flashsim_block_device                     | OK     | 18.42              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-blockdevice-general_block_device                      | OK     | 25.64              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-blockdevice-heap_block_device                         | OK     | 18.58              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-blockdevice-mbr_block_device                          | OK     | 18.72              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-blockdevice-util_block_device                         | OK     | 18.69              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-kvstore-direct_access_devicekey_test                  | OK     | 19.58              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-kvstore-static_tests                                  | OK     | 21.31              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-features-storage-tests-kvstore-tdbstore_whitebox                             | OK     | 18.55              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-events-queue                                                           | OK     | 23.53              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-events-timing                                                          | OK     | 78.86              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-integration-basic                                                      | OK     | 18.01              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed-crypto-sanity                                                     | OK     | 20.53              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-c_strings                                                 | OK     | 21.14              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-crc                                                       | OK     | 22.04              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-dev_null                                                  | OK     | 22.05              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-echo                                                      | OK     | 20.85              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-flashiap                                                  | OK     | 21.78              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-generic_tests                                             | OK     | 20.5               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-lp_ticker                                                 | OK     | 24.14              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-lp_timeout                                                | OK     | 52.99              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-lp_timer                                                  | OK     | 22.67              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-race_test                                                 | OK     | 20.61              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-rtc                                                       | OK     | 30.05              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-sleep_lock                                                | OK     | 19.66              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-stl_features                                              | OK     | 19.95              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-ticker                                                    | OK     | 38.62              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-timeout                                                   | OK     | 50.2               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-timer                                                     | OK     | 21.95              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_drivers-timerevent                                                | OK     | 21.14              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_functional-callback                                               | OK     | 18.81              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_functional-callback_big                                           | OK     | 18.7               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_functional-callback_small                                         | OK     | 18.56              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_functional-functionpointer                                        | OK     | 18.44              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-common_tickers                                                | OK     | 36.97              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-common_tickers_freq                                           | OK     | 36.56              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-critical_section                                              | OK     | 18.63              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-flash                                                         | OK     | 22.3               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-gpio                                                          | OK     | 18.23              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-lp_ticker                                                     | OK     | 18.69              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-minimum_requirements                                          | OK     | 18.31              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-mpu                                                           | OK     | 18.33              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-pinmap                                                        | OK     | 18.53              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-rtc                                                           | OK     | 60.77              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-rtc_reset                                                     | OK     | 23.38              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-rtc_time                                                      | OK     | 20.84              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-rtc_time_conv                                                 | OK     | 27.52              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-sleep                                                         | OK     | 19.74              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-sleep_manager                                                 | OK     | 22.51              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-sleep_manager_racecondition                                   | OK     | 31.08              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-stack_size_unification                                        | OK     | 18.34              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-ticker                                                        | OK     | 26.86              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-trng                                                          | OK     | 20.03              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_hal-us_ticker                                                     | OK     | 18.37              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-atomic                                                   | OK     | 21.53              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-circularbuffer                                           | OK     | 19.14              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-critical_section                                         | OK     | 18.52              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-error_handling                                           | OK     | 18.51              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-filehandle                                               | OK     | 18.84              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-sharedptr                                                | OK     | 18.39              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-singletonptr                                             | OK     | 18.31              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-stream                                                   | OK     | 18.75              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-system_reset                                             | OK     | 19.12              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-transaction                                              | OK     | 18.41              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbed_platform-wait_ns                                                  | OK     | 20.56              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-mbed-attributes                                              | OK     | 18.92              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-mbed-call_before_main                                        | OK     | 18.19              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-mbed-cpp                                                     | OK     | 18.17              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-mbed-div                                                     | OK     | 18.2               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-mbed-static_assert                                           | OK     | 18.42              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-basic                                              | OK     | 26.02              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-condition_variable                                 | OK     | 18.73              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-event_flags                                        | OK     | 19.14              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-heap_and_stack                                     | OK     | 18.41              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-kernel_tick_count                                  | OK     | 20.49              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-mail                                               | OK     | 19.69              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-malloc                                             | OK     | 38.95              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-memorypool                                         | OK     | 19.48              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-mutex                                              | OK     | 20.8               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-queue                                              | OK     | 18.97              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-rtostimer                                          | OK     | 19.03              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-semaphore                                          | OK     | 21.97              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-signals                                            | OK     | 19.16              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedmicro-rtos-mbed-threads                                            | OK     | 21.23              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedtls-multi                                                          | OK     | 18.8               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-mbedtls-selftest                                                       | OK     | 32.91              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-psa-attestation                                                        | OK     | 24.11              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-psa-crypto_access_control                                              | OK     | 23.33              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-psa-crypto_init                                                        | OK     | 18.38              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-psa-entropy_inject                                                     | OK     | 19.67              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-psa-its_ps                                                             | OK     | 20.01              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-psa-spm_client                                                         | OK     | 19.12              | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-psa-spm_server                                                         | OK     | 18.8               | default     |
| NUMAKER_PFM_M2351_NS-ARMC6 | NUMAKER_PFM_M2351 | mbed-os-tests-psa-spm_smoke                                                          | OK     | 18.34              | default     |
mbedgt: test suite results: 164 OK

@ccli8
Copy link
Contributor Author

ccli8 commented Jul 4, 2019

Greentea test on non-TFM target

mbedgt: test suite report:
| target                           | platform_name              | test suite                                                                           | result | elapsed_time (sec) | copy_method |
|----------------------------------|----------------------------|--------------------------------------------------------------------------------------|--------|--------------------|-------------|
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-device_key-tests-device_key-functionality                           | OK     | 19.58              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-basic_test                        | OK     | 17.74              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-basic_test_default                | OK     | 17.44              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-case_async_validate               | OK     | 16.84              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-case_control_async                | OK     | 19.75              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-case_control_repeat               | OK     | 16.44              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-case_selection                    | OK     | 16.73              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-case_setup_failure                | OK     | 16.64              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-case_teardown_failure             | OK     | 16.48              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-control_type                      | OK     | 17.38              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-minimal_async_scheduler           | OK     | 17.5               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-minimal_scheduler                 | OK     | 16.45              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-test_assertion_failure_test_setup | OK     | 16.23              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-test_setup_case_selection_failure | OK     | 16.73              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-test_setup_failure                | OK     | 16.33              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-frameworks-utest-tests-unit_tests-test_skip                         | OK     | 16.77              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-nvstore-tests-nvstore-functionality                         | OK     | 34.72              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-blockdevice-buffered_block_device                     | OK     | 16.09              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-blockdevice-flashsim_block_device                     | OK     | 16.03              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-blockdevice-general_block_device                      | OK     | 25.41              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-blockdevice-heap_block_device                         | OK     | 16.16              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-blockdevice-mbr_block_device                          | OK     | 15.94              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-blockdevice-util_block_device                         | OK     | 16.91              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-kvstore-direct_access_devicekey_test                  | OK     | 17.12              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-kvstore-static_tests                                  | OK     | 19.45              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-features-storage-tests-kvstore-tdbstore_whitebox                             | OK     | 16.03              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-events-queue                                                           | OK     | 20.89              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-events-timing                                                          | OK     | 76.36              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-integration-basic                                                      | OK     | 15.3               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-c_strings                                                 | OK     | 15.95              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-crc                                                       | OK     | 16.16              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-dev_null                                                  | OK     | 17.53              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-echo                                                      | OK     | 16.63              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-flashiap                                                  | OK     | 17.34              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-generic_tests                                             | OK     | 16.72              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-lp_ticker                                                 | OK     | 19.55              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-lp_timeout                                                | OK     | 49.0               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-lp_timer                                                  | OK     | 18.7               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-race_test                                                 | OK     | 17.03              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-rtc                                                       | OK     | 26.38              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-sleep_lock                                                | OK     | 15.92              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-stl_features                                              | OK     | 16.55              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-ticker                                                    | OK     | 34.55              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-timeout                                                   | OK     | 46.0               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-timer                                                     | OK     | 18.98              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_drivers-timerevent                                                | OK     | 16.29              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_functional-callback                                               | OK     | 16.17              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_functional-callback_big                                           | OK     | 16.14              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_functional-callback_small                                         | OK     | 16.08              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_functional-functionpointer                                        | OK     | 15.72              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-common_tickers                                                | OK     | 30.56              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-common_tickers_freq                                           | OK     | 31.69              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-critical_section                                              | OK     | 15.85              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-flash                                                         | OK     | 17.53              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-gpio                                                          | OK     | 15.75              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-lp_ticker                                                     | OK     | 16.08              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-minimum_requirements                                          | OK     | 15.97              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-mpu                                                           | OK     | 15.81              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-pinmap                                                        | OK     | 16.03              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-rtc                                                           | OK     | 58.16              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-rtc_reset                                                     | OK     | 20.81              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-rtc_time                                                      | OK     | 18.23              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-rtc_time_conv                                                 | OK     | 24.97              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-sleep                                                         | OK     | 17.09              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-sleep_manager                                                 | OK     | 19.7               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-sleep_manager_racecondition                                   | OK     | 28.48              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-stack_size_unification                                        | OK     | 15.72              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-ticker                                                        | OK     | 24.39              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-trng                                                          | OK     | 19.44              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_hal-us_ticker                                                     | OK     | 15.64              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-atomic                                                   | OK     | 19.09              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-circularbuffer                                           | OK     | 16.69              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-critical_section                                         | OK     | 16.22              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-error_handling                                           | OK     | 16.12              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-filehandle                                               | OK     | 16.42              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-sharedptr                                                | OK     | 16.0               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-singletonptr                                             | OK     | 15.86              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-stream                                                   | OK     | 16.39              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-system_reset                                             | OK     | 18.63              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-transaction                                              | OK     | 16.13              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbed_platform-wait_ns                                                  | OK     | 18.09              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-mbed-attributes                                              | OK     | 15.94              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-mbed-call_before_main                                        | OK     | 15.34              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-mbed-cpp                                                     | OK     | 15.45              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-mbed-div                                                     | OK     | 15.52              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-mbed-static_assert                                           | OK     | 15.72              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-basic                                              | OK     | 24.31              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-condition_variable                                 | OK     | 16.17              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-event_flags                                        | OK     | 16.62              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-heap_and_stack                                     | OK     | 16.13              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-kernel_tick_count                                  | OK     | 17.8               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-mail                                               | OK     | 17.1               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-malloc                                             | OK     | 36.41              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-memorypool                                         | OK     | 16.89              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-mutex                                              | OK     | 18.33              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-queue                                              | OK     | 16.41              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-rtostimer                                          | OK     | 16.52              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-semaphore                                          | OK     | 19.44              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-signals                                            | OK     | 16.58              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedmicro-rtos-mbed-threads                                            | OK     | 18.7               | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedtls-multi                                                          | OK     | 16.12              | default     |
| NUMAKER_PFM_M2351_NOPSA_NS-ARMC6 | NUMAKER_PFM_M2351_NOPSA_NS | mbed-os-tests-mbedtls-selftest                                                       | OK     | 30.66              | default     |
mbedgt: test suite results: 102 OK

0xc0170
0xc0170 previously requested changes Jul 9, 2019
* include extra header file like RTE_Components.h. To avoid inclusion error
* or inclusion of more irrelevant header files, we expand osRtxMutexId()
* in-place to get mutex lock count straight. */
//os_mutex_t *mutex = osRtxMutexId(ns_lock.id);
Copy link
Contributor

Choose a reason for hiding this comment

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

remove dead code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's an on-going change Interface: Refactor the NS interface in TFM repo. The change to TF-M NS interface and related code in this PR are temporary. Just ignore it and wait for TF-M NS interface to be confirmed.

SYS_UnlockReg_S();
CLK_Idle_S();
SYS_LockReg_S();
nu_idle_s();
Copy link
Contributor

Choose a reason for hiding this comment

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

how is this related to TFM support? Shouldn't this be separate PR addressing sleep issue?

Copy link
Contributor

Choose a reason for hiding this comment

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

Seeing other HAL files, this is related to the TFM ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With TF-M integrated in, secure call overhead gets higher. Combine 3 secure calls into one for TFM build and also for non-TFM build.

@@ -0,0 +1,26 @@
/*
* Copyright (c) 2018-2020, Nuvoton Technology Corporation
Copy link
Contributor

Choose a reason for hiding this comment

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

2019 instead of 2020 (some files have this one as well).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not familiar with copyright claim. Which one is better, 2018-2020, 2019-2020, or 2019?

Copy link
Contributor

Choose a reason for hiding this comment

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

just use the year this was created/edit. we are not yet in 2020

Copy link
Contributor

Choose a reason for hiding this comment

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

2018-2019 would be fine here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@0xc0170 Fixed.

@bulislaw
Copy link
Member

@Patater please review

@bulislaw
Copy link
Member

The Mbed OS wide changes are ok, I don't know enough about PSA to review that part.

@ccli8
Copy link
Contributor Author

ccli8 commented Jul 24, 2019

A TFM change 1460 which supports overriding NS interface API has merged. Would you integrate it into mbed-os? So that M2351 can override tfm_ns_interface_init() and tfm_ns_interface_dispatch(...) to meet its requirements.

@0xc0170 0xc0170 requested review from 0xc0170 and a team and removed request for a team August 26, 2019 12:46
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 26, 2019

@ARMmbed/mbed-os-crypto Please review

@ccli8 please rebase

@ccli8 ccli8 force-pushed the nuvoton_m2351_psa branch from de5dbbe to a0bfb96 Compare August 28, 2019 03:13
@ccli8
Copy link
Contributor Author

ccli8 commented Aug 28, 2019

Do rebase to fix conflicts

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 19, 2019

Do rebase to fix conflicts

After the latest 5.14 changes, this needs rebase again. I assume the naming should be fixed as well.

ccli8 added 11 commits January 6, 2020 15:54
uVisor is deprecated since mbed-os 5.10, so remove related code with it.
On M2351, some spaces like SYS/CLK are hard-wired to secure and cannot change.
To access these spaces from non-secure world, we must provide platform-specific NSC
functions. With TFM introduced, we must synchronize NSC calls into TFM to keep TFM
in sync instead of straight NSC calls. To achieve this goal, we go with the following
approach:

1. Like PSA APIs, enforce locked entry through tfm_ns_lock_dispatch().
2. Run platform-specific secure functions in default secure partition, in which SYS/CLK
   spaces have been configured to be accessible.
Lock kernel scheduler rather than mutex to guarantee serialization of NS
secure calls
Merge SYS_UnlockReg_S()/CLK_Idle_S() or CLK_PowerDown_S()/SYS_LockReg_S()
into nu_idle_s() or nu_powerdown_s() when they are available.
Support secure/non-secure combined build for PSA target:
1.  In secure post-build, deliver built secure image to TARGET_NU_PREBUILD_SECURE
    directory.
2.  In non-secure post-build, merge non-secure image with secure image saved in
    TARGET_NU_PREBUILD_SECURE directory.
3.  In non-secure post-build, user can also drop secure image saved in
    TARGET_NU_PREBUILD_SECURE directory and provide its own by adding the line below
    in mbed_app.json:
    "target.extra_labels_remove": ["NU_PREBUILD_SECURE"]
1. Change secure/non-secure ROM to 240KiB/272KiB
2. Change secure/non-secure RAM to 64KiB/32KiB
Copy link
Contributor

@madchutney madchutney left a comment

Choose a reason for hiding this comment

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

NUMAKER_PFM_M2351_NOPSA_S and NUMAKER_PFM_M2351_NOPSA_NS are longer than the 20 character limit which is currently enforced by the online schema.

I believe we need to adopt another system for Mbed 6 and not combine the type of build with the board name.

@ccli8
Copy link
Contributor Author

ccli8 commented Jan 7, 2020

@madchutney For the 20-char limit with target name, I believe you see the outdated version. It has been addressed in #11288 (comment).

@ccli8 ccli8 force-pushed the nuvoton_m2351_psa branch from f55efa8 to 22e4f93 Compare January 7, 2020 01:07
@ccli8
Copy link
Contributor Author

ccli8 commented Jan 7, 2020

This PR has been on-going for a long time. It relies on mbed-os re-integration with TF-M for refactoring NS interface (#10959 (comment)). However, the re-integration is not scheduled yet? Here, I propose a solution: I separate out 85dfc1a which changes NS lock functions to weak so that M2351 platform can override them to provide another mechanism. This is also what https://review.trustedfirmware.org/c/trusted-firmware-m/+/1460 is adopting.

@madchutney
Copy link
Contributor

Hi @ccli8, my apologies. I was basing my comment on the description of the PR. I see the code is now fixed. Thanks.

@madchutney madchutney dismissed their stale review January 7, 2020 09:43

Comments addressed

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 7, 2020

However, the re-integration is not scheduled yet? Here, I propose a solution: I separate out 85dfc1a which changes NS lock functions to weak so that M2351 platform can override them to provide another mechanism. This is also what https://review.trustedfirmware.org/c/trusted-firmware-m/+/1460 is adopting.

👍

@Patater @Devran01 Any concerns ?

@Patater
Copy link
Contributor

Patater commented Jan 7, 2020

However, the re-integration is not scheduled yet? Here, I propose a solution: I separate out 85dfc1a which changes NS lock functions to weak so that M2351 platform can override them to provide another mechanism. This is also what https://review.trustedfirmware.org/c/trusted-firmware-m/+/1460 is adopting.

+1

@Patater @Devran01 Any concerns ?

OK for now. We'll need to revisit/re-integrate when we bring in the new TF-M integration work from feature_twincpu to master.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 7, 2020

@ccli8 Once updated as suggested previously, please let us know.

@ccli8
Copy link
Contributor Author

ccli8 commented Jan 8, 2020

Once updated as suggested previously, please let us know.

@0xc0170 I've updated as #10959 (comment) suggested. Please go ahead.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 8, 2020

CI restarted

@mbed-ci
Copy link

mbed-ci commented Jan 8, 2020

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 2
Build artifacts

@0xc0170 0xc0170 removed the needs: CI label Jan 8, 2020
@0xc0170 0xc0170 merged commit af03f83 into ARMmbed:master Jan 8, 2020
@ccli8 ccli8 deleted the nuvoton_m2351_psa branch January 10, 2020 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-version: 6.0.0-alpha-1 First pre-release version of 6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants