From 313ee9b5db04b8f397d6ee23d50e0eea4bc23bd4 Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Wed, 29 Jul 2026 22:17:08 +0300 Subject: [PATCH] fix(esp_system): break into the debugger only on the first panic entry --- components/esp_system/panic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_system/panic.c b/components/esp_system/panic.c index e3c9ac16f96..2ed1cb89f3c 100644 --- a/components/esp_system/panic.c +++ b/components/esp_system/panic.c @@ -380,7 +380,7 @@ void esp_panic_handler(panic_info_t *info) // then only print up to details. Users should be able to probe for the other information // in debug mode. #if CONFIG_ESP_DEBUG_OCDAWARE - if (esp_cpu_dbgr_is_attached()) { + if (esp_cpu_dbgr_is_attached() && g_panic_entry_count[esp_cpu_get_core_id()] <= 1) { char *panic_reason_str = NULL; if (info->pseudo_excause) { panic_reason_str = (char *)info->reason;