From b4e5a53f48727274bd2c5c20413c1771a28db32e Mon Sep 17 00:00:00 2001 From: ccli8 Date: Thu, 18 Apr 2019 11:05:27 +0800 Subject: [PATCH] Exclude mbed-hal-spm test for TrustZone chips This is because for TrustZone chips like M23/M33, SecureFault is implemented in secure-side and cannot pass on to non-secure side. --- TESTS/mbed_hal/spm/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"