From bed68af4894f732d7d5225cba0a87fa2e317942f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Arg=C3=BCelles?= Date: Tue, 11 Jul 2023 11:46:04 -0300 Subject: [PATCH] tests: code_relocation: support mr_canhubk3 boards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add test scenario for NXP S32 platforms, for now only ported to mr_canhubk3. In some platforms the MPU region used for NULL pointer detection conflicts with the ITCM region, causing access fault. Make disabling the null pointer exception detection the default behavior for this scenario. Signed-off-by: Manuel Argüelles --- .../application_development/code_relocation/testcase.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/application_development/code_relocation/testcase.yaml b/tests/application_development/code_relocation/testcase.yaml index befb9f3a3e95e7..ab18b1cfefc53c 100644 --- a/tests/application_development/code_relocation/testcase.yaml +++ b/tests/application_development/code_relocation/testcase.yaml @@ -15,6 +15,14 @@ tests: - CONFIG_MPU_ALLOW_FLASH_WRITE=y platform_allow: - frdm_k64f + tests.application_development.code_relocation.nxp_s32: + filter: not CONFIG_CPU_HAS_NXP_MPU and CONFIG_MINIMAL_LIBC and dt_chosen_enabled("zephyr,itcm") + arch_allow: arm + extra_configs: + - CONFIG_RELOCATE_TO_ITCM=y + - CONFIG_NULL_POINTER_EXCEPTION_DETECTION_NONE=y + platform_allow: + - mr_canhubk3 tests.application_development.code_relocation.no_itcm: filter: not CONFIG_CPU_HAS_NXP_MPU and not dt_chosen_enabled("zephyr,itcm") arch_allow: arm