From 9e03abb8cb5ea1ec81df8efde9bab33307edcafe Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Wed, 26 Jun 2024 16:17:02 +0200 Subject: [PATCH] debug: no UNALIGNED_ACCESS_SUPPORTED for cortex M0 or M0plus Set the UNALIGNED_ACCESS_SUPPORTED only for MCU with cortex M that are neither M0 nor M0plus Cortex M0 or M0plus mcus do not support un-aligned address access Signed-off-by: Francois Ramu --- subsys/debug/mipi_stp_decoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subsys/debug/mipi_stp_decoder.c b/subsys/debug/mipi_stp_decoder.c index 39aacbdd4d7..4f320a75526 100644 --- a/subsys/debug/mipi_stp_decoder.c +++ b/subsys/debug/mipi_stp_decoder.c @@ -6,7 +6,9 @@ #include #include -#if defined(CONFIG_CPU_CORTEX_M) && !defined(CONFIG_CPU_CORTEX_M0) +#if defined(CONFIG_CPU_CORTEX_M) && \ + !defined(CONFIG_CPU_CORTEX_M0) && \ + !defined(CONFIG_CPU_CORTEX_M0PLUS) #define UNALIGNED_ACCESS_SUPPORTED 1 #else #define UNALIGNED_ACCESS_SUPPORTED 0