samples: tfm_integration: support TF-M samples on nRF5340 DK
Add support for nRF5340 DK in the TF-M integration samples (nrf5340dk_nrf5340_cpuappns build target). Add the required DTS overlays needed for the samples to build and run successfully. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
e4bccd8da7
commit
4d536647e1
4 changed files with 66 additions and 2 deletions
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Nordic Semiconductor ASA.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Modify the SRAM partitioning to accommodate the requirements
|
||||||
|
* for the Secure (TF-M) firmware for the configuration that is
|
||||||
|
* used in this sample.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Increase the size of the Secure Firmware (TF-M).
|
||||||
|
* This modification is not required at the moment,
|
||||||
|
* since TF-M region definitions are configured
|
||||||
|
* statically in the TF-M project.
|
||||||
|
*/
|
||||||
|
&sram0_s {
|
||||||
|
reg = <0x20000000 DT_SIZE_K(256)>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Decrease the size of the Non-Secure Firmware (Zephyr),
|
||||||
|
* and move its starting address to the offset expected by
|
||||||
|
* TF-M.
|
||||||
|
*/
|
||||||
|
/delete-node/ &sram0_ns;
|
||||||
|
/ {
|
||||||
|
reserved-memory {
|
||||||
|
sram0_ns: image_ns@20040000 {
|
||||||
|
reg = <0x20040000 DT_SIZE_K(192)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -6,7 +6,7 @@ tests:
|
||||||
sample.psa_level_1:
|
sample.psa_level_1:
|
||||||
tags: introduction
|
tags: introduction
|
||||||
platform_allow: mps2_an521_nonsecure lpcxpresso55s69_ns nrf5340pdk_nrf5340_cpuappns
|
platform_allow: mps2_an521_nonsecure lpcxpresso55s69_ns nrf5340pdk_nrf5340_cpuappns
|
||||||
nrf9160dk_nrf9160ns
|
nrf5340dk_nrf5340_cpuappns nrf9160dk_nrf9160ns
|
||||||
harness: console
|
harness: console
|
||||||
harness_config:
|
harness_config:
|
||||||
type: multi_line
|
type: multi_line
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Nordic Semiconductor ASA.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Modify the SRAM partitioning to accommodate the requirements
|
||||||
|
* for the Secure (TF-M) firmware for the configuration that is
|
||||||
|
* used in this sample.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Increase the size of the Secure Firmware (TF-M).
|
||||||
|
* This modification is not required at the moment,
|
||||||
|
* since TF-M region definitions are configured
|
||||||
|
* statically in the TF-M project.
|
||||||
|
*/
|
||||||
|
&sram0_s {
|
||||||
|
reg = <0x20000000 DT_SIZE_K(256)>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Decrease the size of the Non-Secure Firmware (Zephyr),
|
||||||
|
* and move its starting address to the offset expected by
|
||||||
|
* TF-M.
|
||||||
|
*/
|
||||||
|
/delete-node/ &sram0_ns;
|
||||||
|
/ {
|
||||||
|
reserved-memory {
|
||||||
|
sram0_ns: image_ns@20040000 {
|
||||||
|
reg = <0x20040000 DT_SIZE_K(192)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -6,7 +6,7 @@ tests:
|
||||||
sample.tfm_ipc:
|
sample.tfm_ipc:
|
||||||
tags: introduction
|
tags: introduction
|
||||||
platform_allow: mps2_an521_nonsecure lpcxpresso55s69_ns nrf5340pdk_nrf5340_cpuappns
|
platform_allow: mps2_an521_nonsecure lpcxpresso55s69_ns nrf5340pdk_nrf5340_cpuappns
|
||||||
nrf9160dk_nrf9160ns nucleo_l552ze_q_ns
|
nrf5340dk_nrf5340_cpuappns nrf9160dk_nrf9160ns nucleo_l552ze_q_ns
|
||||||
harness: console
|
harness: console
|
||||||
harness_config:
|
harness_config:
|
||||||
type: multi_line
|
type: multi_line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue