mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Merge branch 'bugfix/memprot_debug_mode_c3' into 'master'
memprot: fix debug mode check for ESP32-C3 See merge request espressif/esp-idf!16529
This commit is contained in:
commit
d9b71e7c5d
@ -650,7 +650,7 @@ esp_err_t esp_mprot_set_prot(const esp_memp_config_t *memp_config)
|
||||
// 1.check the signal repeatedly to avoid possible glitching attempt
|
||||
// 2.leave the Memprot unset to allow debug operations
|
||||
if (esp_cpu_in_ocd_debug_mode()) {
|
||||
ESP_FAULT_ASSERT(!esp_cpu_in_ocd_debug_mode());
|
||||
ESP_FAULT_ASSERT(esp_cpu_in_ocd_debug_mode());
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user