-
Notifications
You must be signed in to change notification settings - Fork 111
ST : Add STM32WBA platform to psa-arch-tests. #406
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
Conversation
Add variant ns to stm32wba65i_dk1 board to embed TF-M in the SoC secure world. The flash layout is synced with the layout defined in Zephyr TF-M integration of platform STM32WBA65I. Successfully tested against a few samples and test samples: - samples/tfm_integration/psa_crypto - samples/tfm_integration/psa_protected_storage - samples/tfm_integration/tfm_ipc - samples/tfm_integration/tfm_secure_partition - tests/subsys/secure_storage/psa/crypto - tests/subsys/secure_storage/psa/its (with CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y and CONFIG_TFM_ITS_MAX_ASSET_SIZE=256) There is currently a build issue that prevents to build (and run) samples/tfm_integration/tfm_regression_test when using GCC 11.x or 12.x. The issue needs should be addressed in TF-M with a change like the one applied on STM32U5 platforms, see [1] and [2]. Support for PSA Arch Tests (samples/tfm_integration/tfm_psa_test) in not yet merged but is in under review [3]. Link: zephyrproject-rtos/trusted-firmware-m@edbb015 [1] Link: TrustedFirmware-M/trusted-firmware-m@578a6f4 [2] Link: ARM-software/psa-arch-tests#406 [3] Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add variant ns to nucleo_wba65ri board to embed TF-M in the SoC secure world. The flash layout is synced with the layout defined in Zephyr TF-M integration of platform STM32WBA65I. - samples/tfm_integration/psa_crypto - samples/tfm_integration/psa_protected_storage - samples/tfm_integration/tfm_ipc - samples/tfm_integration/tfm_secure_partition - tests/subsys/secure_storage/psa/crypto - tests/subsys/secure_storage/psa/its (with CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y and CONFIG_TFM_ITS_MAX_ASSET_SIZE=256) There is currently a build issue that prevents to build (and run) samples/tfm_integration/tfm_regression_test when using GCC 11.x or 12.x. The issue needs should be addressed in TF-M with a change like the one applied on STM32U5 platforms, see [1] and [2]. Support for PSA Arch Tests (samples/tfm_integration/tfm_psa_test) in not yet merged but is in under review [3]. Link: zephyrproject-rtos/trusted-firmware-m@edbb015 [1] Link: TrustedFirmware-M/trusted-firmware-m@578a6f4 [2] Link: ARM-software/psa-arch-tests#406 [3] Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update with correct copyright year for all the files.
7c78575
to
ebda84e
Compare
update copyright : Done. |
@@ -1,5 +1,5 @@ | |||
/** @file | |||
* Copyright (c) 2018-2019, Arm Limited or its affiliates. All rights reserved. | |||
* Copyright (c) 2021 - 2025, STMicroelectronics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Earlier copyright year was 2018-2019. You can mention it now as 2018-2025.
@@ -1,5 +1,5 @@ | |||
/** @file | |||
* Copyright (c) 2018-2019, Arm Limited or its affiliates. All rights reserved. | |||
* Copyright (c) 2021 - 2025, STMicroelectronics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as pal_wd_stm.c
@@ -0,0 +1,107 @@ | |||
/** @file | |||
* Copyright (c) 2025, STMicroelectronics. | |||
* SPDX-License-Identifier : Apache-2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the copyright as
/** @file
* Copyright (c) 2025, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* Copyright (c) 2025, STMicroelectronics.
* SPDX-License-Identifier : Apache-2.0
Please keep Arm in the copyright mentions and you can add STMicroelectronics below as mentioned here. Please consider the same for other files.
@@ -0,0 +1,53 @@ | |||
#ifndef _TARGET_DATABASE_H_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add copyright for this file.
Change-Id: Ic7947b7f0cc1d922295f6a21539915e402229c9f Signed-off-by: Ahmad EL JOUAID <ahmad.eljouaid@st.com>
update copyright : done
Add variant ns to stm32wba65i_dk1 board to embed TF-M in the SoC secure world. The flash layout is synced with the layout defined in Zephyr TF-M integration of platform STM32WBA65I. Successfully tested against a few samples and test samples: - samples/tfm_integration/psa_crypto - samples/tfm_integration/psa_protected_storage - samples/tfm_integration/tfm_ipc - samples/tfm_integration/tfm_secure_partition - tests/subsys/secure_storage/psa/crypto - tests/subsys/secure_storage/psa/its (with CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y and CONFIG_TFM_ITS_MAX_ASSET_SIZE=256) There is currently a build issue that prevents to build (and run) samples/tfm_integration/tfm_regression_test when using GCC 11.x or 12.x. The issue needs should be addressed in TF-M with a change like the one applied on STM32U5 platforms, see [1] and [2]. Support for PSA Arch Tests (samples/tfm_integration/tfm_psa_test) in not yet merged but is in under review [3]. Link: zephyrproject-rtos/trusted-firmware-m@edbb015 [1] Link: TrustedFirmware-M/trusted-firmware-m@578a6f4 [2] Link: ARM-software/psa-arch-tests#406 [3] Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add variant ns to nucleo_wba65ri board to embed TF-M in the SoC secure world. The flash layout is synced with the layout defined in Zephyr TF-M integration of platform STM32WBA65I. - samples/tfm_integration/psa_crypto - samples/tfm_integration/psa_protected_storage - samples/tfm_integration/tfm_ipc - samples/tfm_integration/tfm_secure_partition - tests/subsys/secure_storage/psa/crypto - tests/subsys/secure_storage/psa/its (with CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y and CONFIG_TFM_ITS_MAX_ASSET_SIZE=256) There is currently a build issue that prevents to build (and run) samples/tfm_integration/tfm_regression_test when using GCC 11.x or 12.x. The issue needs should be addressed in TF-M with a change like the one applied on STM32U5 platforms, see [1] and [2]. Support for PSA Arch Tests (samples/tfm_integration/tfm_psa_test) in not yet merged but is in under review [3]. Link: zephyrproject-rtos/trusted-firmware-m@edbb015 [1] Link: TrustedFirmware-M/trusted-firmware-m@578a6f4 [2] Link: ARM-software/psa-arch-tests#406 [3] Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add variant ns to stm32wba65i_dk1 board to embed TF-M in the SoC secure world. The flash layout is synced with the layout defined in Zephyr TF-M integration of platform STM32WBA65I. Successfully tested against a few samples and test samples: - samples/tfm_integration/psa_crypto - samples/tfm_integration/psa_protected_storage - samples/tfm_integration/tfm_ipc - samples/tfm_integration/tfm_secure_partition - tests/subsys/secure_storage/psa/crypto - tests/subsys/secure_storage/psa/its (with CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y and CONFIG_TFM_ITS_MAX_ASSET_SIZE=256) There is currently a build issue that prevents to build (and run) samples/tfm_integration/tfm_regression_test when using GCC 11.x or 12.x. The issue needs should be addressed in TF-M with a change like the one applied on STM32U5 platforms, see [1] and [2]. Support for PSA Arch Tests (samples/tfm_integration/tfm_psa_test) in not yet merged but is in under review [3]. Link: zephyrproject-rtos/trusted-firmware-m@edbb015 [1] Link: TrustedFirmware-M/trusted-firmware-m@578a6f4 [2] Link: ARM-software/psa-arch-tests#406 [3] Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add variant ns to nucleo_wba65ri board to embed TF-M in the SoC secure world. The flash layout is synced with the layout defined in Zephyr TF-M integration of platform STM32WBA65I. - samples/tfm_integration/psa_crypto - samples/tfm_integration/psa_protected_storage - samples/tfm_integration/tfm_ipc - samples/tfm_integration/tfm_secure_partition - tests/subsys/secure_storage/psa/crypto - tests/subsys/secure_storage/psa/its (with CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y and CONFIG_TFM_ITS_MAX_ASSET_SIZE=256) There is currently a build issue that prevents to build (and run) samples/tfm_integration/tfm_regression_test when using GCC 11.x or 12.x. The issue needs should be addressed in TF-M with a change like the one applied on STM32U5 platforms, see [1] and [2]. Support for PSA Arch Tests (samples/tfm_integration/tfm_psa_test) in not yet merged but is in under review [3]. Link: zephyrproject-rtos/trusted-firmware-m@edbb015 [1] Link: TrustedFirmware-M/trusted-firmware-m@578a6f4 [2] Link: ARM-software/psa-arch-tests#406 [3] Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Added the "tgt_dev_apis_tfm_stm32wba" file for the STM32WBA platform to enable the execution of all PSA API tests.
This file is crucial for running all PSA API tests on the STM32WBA platform, ensuring compliance and robustness of security implementations.
This change allows for validation of PSA API implementations on STM32WBA , increasing test coverage and platform security.
All PSA API tests have been successfully executed on the STM32WBA platform, confirming compliance with specifications.