mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 18:40:59 +02:00
fix(lp_core): dont reset lp cpu with debug attached
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user