esp_system: let panic handler break on debug mode on software abort
This commit is contained in:
parent
af9b1131a3
commit
29ebfc3f46
1 changed files with 2 additions and 6 deletions
|
@ -327,10 +327,6 @@ void __attribute__((noreturn)) panic_abort(const char *details)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
if (esp_cpu_in_ocd_debug_mode()) {
|
||||
cpu_hal_break();
|
||||
}
|
||||
*((int *) 0) = 0; // should be an invalid operation on targets
|
||||
}
|
||||
*((int *) 0) = 0; // should be an invalid operation on targets
|
||||
while(1);
|
||||
}
|
Loading…
Reference in a new issue