From f3541eccffaab5bae5fab8c750f10190581a21cd Mon Sep 17 00:00:00 2001 From: Aleksander Kaminski Date: Thu, 13 Jul 2023 11:39:44 +0200 Subject: [PATCH] armv7m: fix DEBUG reset on exception logic JIRA: RTOS-489 --- hal/armv7m/exceptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/armv7m/exceptions.c b/hal/armv7m/exceptions.c index 68b74843..042652bb 100644 --- a/hal/armv7m/exceptions.c +++ b/hal/armv7m/exceptions.c @@ -130,7 +130,7 @@ __attribute__((section(".noxip"))) void hal_exceptionsDispatch(unsigned int n, s hal_exceptionsDumpContext(buff, ctx, n); hal_consolePrint(buff); -#ifndef NDEBUG +#ifdef NDEBUG hal_cpuReset(); #endif