diff --git a/TESTS/mbed_hal/spm/main.cpp b/TESTS/mbed_hal/spm/main.cpp index 274482f15e..5b16dcc506 100644 --- a/TESTS/mbed_hal/spm/main.cpp +++ b/TESTS/mbed_hal/spm/main.cpp @@ -23,8 +23,8 @@ #error [NOT_SUPPORTED] this test is supported on GCC only #endif -#if defined(__CORTEX_M33) -#error [NOT_SUPPORTED] Cannot run on M33 core as SecureFault is implemented in secure-side and cant be remapped +#if DOMAIN_NS == 1 +#error [NOT_SUPPORTED] Cannot run on M23/M33 core as SecureFault is implemented in secure-side and cant be remapped #endif #include "utest/utest.h"