fix(lp_core): dont reset lp cpu with debug attached

This commit is contained in:
Samuel Obuch
2025-06-05 23:57:44 +02:00
parent 1a49af0fb6
commit 7024babc31

View File

@@ -91,7 +91,14 @@ esp_err_t ulp_lp_core_run(ulp_lp_core_cfg_t* cfg)
#endif //ESP_ROM_HAS_LP_ROM #endif //ESP_ROM_HAS_LP_ROM
LP_CORE_RCC_ATOMIC() { LP_CORE_RCC_ATOMIC() {
#if CONFIG_ULP_NORESET_UNDER_DEBUG
/* lp_core module reset causes loss of configured HW breakpoints and dcsr.ebreak* */
if (!esp_cpu_dbgr_is_attached()) {
lp_core_ll_reset_register(); lp_core_ll_reset_register();
}
#else
lp_core_ll_reset_register();
#endif
lp_core_ll_enable_bus_clock(true); lp_core_ll_enable_bus_clock(true);
} }