From c8ae05dd8065adcb9db0a31da0fd2fbf3e2b385b Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Thu, 30 May 2019 11:16:56 -0500 Subject: [PATCH] tests: flash_map: Configure mpu to allow flash write On boards that have the arm or nxp mpu, configure the mpu to allow flash writes. Otherwise this test will fail with an mpu fault. Signed-off-by: Maureen Helm --- tests/subsys/storage/flash_map/overlay-mpu.conf | 1 + tests/subsys/storage/flash_map/testcase.yaml | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 tests/subsys/storage/flash_map/overlay-mpu.conf diff --git a/tests/subsys/storage/flash_map/overlay-mpu.conf b/tests/subsys/storage/flash_map/overlay-mpu.conf new file mode 100644 index 00000000000..6bafaa53f29 --- /dev/null +++ b/tests/subsys/storage/flash_map/overlay-mpu.conf @@ -0,0 +1 @@ +CONFIG_MPU_ALLOW_FLASH_WRITE=y diff --git a/tests/subsys/storage/flash_map/testcase.yaml b/tests/subsys/storage/flash_map/testcase.yaml index cf2e91bbd45..2f8ce205b52 100644 --- a/tests/subsys/storage/flash_map/testcase.yaml +++ b/tests/subsys/storage/flash_map/testcase.yaml @@ -1,5 +1,8 @@ tests: storage.flash_map: - platform_whitelist: nrf52840_pca10056 nrf52_pca10040 nrf51_pca10028 - frdm_k64f hexiwear_k64 qemu_x86 native_posix + platform_whitelist: nrf51_pca10028 qemu_x86 native_posix + tags: flash_map + storage.flash_map_mpu: + extra_args: OVERLAY_CONFIG=overlay-mpu.conf + platform_whitelist: nrf52840_pca10056 nrf52_pca10040 frdm_k64f hexiwear_k64 tags: flash_map