mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'check_debug_aware_config_v5.1' into 'release/v5.1'
fix(esp_hw_support): re-enable CONFIG_ESP_DEBUG_OCDAWARE functionality (v5.1) See merge request espressif/esp-idf!27106
This commit is contained in:
commit
2c77ccda5e
@ -26,9 +26,11 @@ void abort(void)
|
||||
#if !CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT
|
||||
esp_rom_printf("abort() was called at PC 0x%08x\r\n", (intptr_t)__builtin_return_address(0) - 3);
|
||||
#endif
|
||||
#if CONFIG_ESP_DEBUG_OCDAWARE
|
||||
if (esp_cpu_dbgr_is_attached()) {
|
||||
esp_cpu_dbgr_break();
|
||||
}
|
||||
#endif
|
||||
while (1) {
|
||||
}
|
||||
}
|
||||
|
@ -294,6 +294,7 @@ void esp_panic_handler(panic_info_t *info)
|
||||
// If on-chip-debugger is attached, and system is configured to be aware of this,
|
||||
// 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()) {
|
||||
char *panic_reason_str = NULL;
|
||||
if (info->pseudo_excause) {
|
||||
@ -322,7 +323,7 @@ void esp_panic_handler(panic_info_t *info)
|
||||
esp_cpu_set_breakpoint(0, info->addr); // use breakpoint 0
|
||||
return;
|
||||
}
|
||||
|
||||
#endif //CONFIG_ESP_DEBUG_OCDAWARE
|
||||
// start panic WDT to restart system if we hang in this handler
|
||||
if (!wdt_hal_is_enabled(&rtc_wdt_ctx)) {
|
||||
wdt_hal_init(&rtc_wdt_ctx, WDT_RWDT, 0, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user