diff --git a/include/zephyr/arch/arm/error.h b/include/zephyr/arch/arm/error.h index 54463bacc80..4b30236e005 100644 --- a/include/zephyr/arch/arm/error.h +++ b/include/zephyr/arch/arm/error.h @@ -35,6 +35,7 @@ extern "C" { */ #define ARCH_EXCEPT(reason_p) \ do {\ + while(1) {} \ arch_irq_unlock(0); \ __asm__ volatile( \ "mov r0, %[_reason]\n" \ diff --git a/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c b/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c index 14d964724c6..63bbc19f163 100644 --- a/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c +++ b/modules/hal_nordic/nrf_802154/nrf_802154_assert_handler.c @@ -11,6 +11,7 @@ __weak void nrf_802154_assert_handler(void) { + while(1) {} #ifdef CONFIG_USERSPACE /* User threads aren't allowed to induce kernel panics; generate * an oops instead.