From 29ebfc3f462f92f20cb157406999693db6ae21a0 Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Tue, 18 Feb 2020 13:27:30 +0500 Subject: [PATCH] esp_system: let panic handler break on debug mode on software abort --- components/esp_system/panic.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/esp_system/panic.c b/components/esp_system/panic.c index 7418a4b44..2a88f22bb 100644 --- a/components/esp_system/panic.c +++ b/components/esp_system/panic.c @@ -327,10 +327,6 @@ void __attribute__((noreturn)) panic_abort(const char *details) #endif #endif - while (1) { - if (esp_cpu_in_ocd_debug_mode()) { - cpu_hal_break(); - } - *((int *) 0) = 0; // should be an invalid operation on targets - } + *((int *) 0) = 0; // should be an invalid operation on targets + while(1); } \ No newline at end of file