From 577d286639cbea63109113ba1f5319ce47f9bea2 Mon Sep 17 00:00:00 2001 From: Oren Cohen Date: Sun, 3 Mar 2019 17:54:25 +0200 Subject: [PATCH] Skip test on Cortex M33 devices On platforms using coretx m33 accessing the secure memory will cause SecureFault instead of Hardfault. SecureFault is implemented in the secure image and cannot be changed in runtime. --- TESTS/mbed_hal/spm/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TESTS/mbed_hal/spm/main.cpp b/TESTS/mbed_hal/spm/main.cpp index 4863b2e6a6c..8d654fb599e 100644 --- a/TESTS/mbed_hal/spm/main.cpp +++ b/TESTS/mbed_hal/spm/main.cpp @@ -27,6 +27,10 @@ #error [NOT_SUPPORTED] Disable this Test until FUTURE_SEQUANA_PSA enables Memory protection #endif +#if defined(__CORTEX_M33) +#error [NOT_SUPPORTED] Cannot run on M33 core as SecureFault is implemented in secure-side and cant be remapped +#endif + #include "utest/utest.h" #include "unity/unity.h" #include "greentea-client/test_env.h"