From 391da6f8f54db22d4717a41ac8ecad077c2ac7ad Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Fri, 26 Apr 2024 13:55:51 +0200 Subject: [PATCH] boards: arm: stm32f756 with all mpu regions when testing in userspace Disable the quadspi mpu region of the nucleo_f756zg (like done on nucleo_f746zg) when testing the samples/userspace/shared_mem or tests/kernel/mem_protect/userspace The stm32f7 cortex M7 has 8 MPU regions and the one for quadspi prevents the testcase to PASS. Signed-off-by: Francois Ramu --- .../shared_mem/boards/nucleo_f756zg.overlay | 13 +++++++++++++ .../userspace/boards/nucleo_f756zg.overlay | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 samples/userspace/shared_mem/boards/nucleo_f756zg.overlay create mode 100644 tests/kernel/mem_protect/userspace/boards/nucleo_f756zg.overlay diff --git a/samples/userspace/shared_mem/boards/nucleo_f756zg.overlay b/samples/userspace/shared_mem/boards/nucleo_f756zg.overlay new file mode 100644 index 0000000000..6277cda5bc --- /dev/null +++ b/samples/userspace/shared_mem/boards/nucleo_f756zg.overlay @@ -0,0 +1,13 @@ +/* + * Copyright 2024 STMicroelectronics + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/* + * Disable quadspi MPU region for testing + * on this stm32f7 target. + * Otherwise one region will be missing from the 8 MPU regions + */ + +/delete-node/ &quadspi_memory; diff --git a/tests/kernel/mem_protect/userspace/boards/nucleo_f756zg.overlay b/tests/kernel/mem_protect/userspace/boards/nucleo_f756zg.overlay new file mode 100644 index 0000000000..6277cda5bc --- /dev/null +++ b/tests/kernel/mem_protect/userspace/boards/nucleo_f756zg.overlay @@ -0,0 +1,13 @@ +/* + * Copyright 2024 STMicroelectronics + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/* + * Disable quadspi MPU region for testing + * on this stm32f7 target. + * Otherwise one region will be missing from the 8 MPU regions + */ + +/delete-node/ &quadspi_memory;