From 509fdf22d69b27719684d56eb0f1231a1801f582 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Fri, 27 Mar 2026 13:41:22 +0200 Subject: [PATCH] zephyr: wrapper: do not send IPC in fatal handler in test mode Do not send IPC in case SOF is built with CONFIG_SOF_BOOT_TEST_STANDALONE and IPC subsystem is not fully initialized. Signed-off-by: Kai Vehmanen --- zephyr/wrapper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 2e302f22c94b..ede523024f59 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -333,7 +333,10 @@ void k_sys_fatal_error_handler(unsigned int reason, /* flush and switch to immediate mode */ LOG_PANIC(); + /* IPC not set up in standalone test mode */ +#ifndef CONFIG_SOF_BOOT_TEST_STANDALONE ipc_send_panic_notification(); +#endif #if defined(CONFIG_ARCH_POSIX) || defined(CONFIG_ZEPHYR_POSIX) LOG_ERR("Halting emulation");