From 2c757064b1827c67c38412b9a6af7e317a2e83c9 Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Thu, 1 Jun 2023 15:24:16 +0800 Subject: [PATCH] zephyr: wrapper: halt the system in fatal error handler Follow the k_sys_fatal_error_handler implementation in fatal.c in zephyr framework. Without this halt, our k_sys_fatal_error_handler will be called copules time and result to many useless IPC messages to host. Signed-off-by: Rander Wang --- zephyr/wrapper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 2b6102a0d..83535adc0 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -336,4 +336,5 @@ void k_sys_fatal_error_handler(unsigned int reason, ipc_send_panic_notification(); LOG_ERR("Halting system"); + k_fatal_halt(reason); }