Skip to content

Commit

Permalink
tests: code_relocation: support mr_canhubk3 boards
Browse files Browse the repository at this point in the history
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 <manuel.arguelles@nxp.com>
  • Loading branch information
manuargue authored and carlescufi committed Jul 14, 2023
1 parent 17f3457 commit bed68af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/application_development/code_relocation/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bed68af

Please sign in to comment.