From 811e17c07d480580e17dc0cb2c587a82bc5ea578 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Tue, 19 Nov 2024 19:22:48 -0600 Subject: [PATCH] make panic loop back to breakpoint FWIW, and remove spurious header --- src/rp2_common/pico_platform_panic/panic.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/rp2_common/pico_platform_panic/panic.c b/src/rp2_common/pico_platform_panic/panic.c index d3eca23ee..06c063d2a 100644 --- a/src/rp2_common/pico_platform_panic/panic.c +++ b/src/rp2_common/pico_platform_panic/panic.c @@ -9,7 +9,6 @@ #include #include #include "pico.h" -#include "pico/platform/panic.h" #if LIB_PICO_PRINTF_PICO #include "pico/printf.h" @@ -38,8 +37,8 @@ void __attribute__((naked, noreturn)) __printflike(1, 0) panic(__unused const ch #if !PICO_PANIC_FUNCTION_EMPTY "jal " __XSTRING(PICO_PANIC_FUNCTION) "\n" #endif - "ebreak\n" - "1: j 1b\n" + "1: ebreak\n" + "j 1b\n" #else @@ -47,8 +46,8 @@ void __attribute__((naked, noreturn)) __printflike(1, 0) panic(__unused const ch #if !PICO_PANIC_FUNCTION_EMPTY "bl " __XSTRING(PICO_PANIC_FUNCTION) "\n" #endif - "bkpt #0\n" - "1: b 1b\n" // loop for ever as we are no return + "1: bkpt #0\n" + "b 1b\n" // loop for ever as we are no return #endif :