mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/debugging_fixes' into 'master'
Small debugging fixes Invoke panic handler when a stack overflow has been detected; unhandled interrupt handler now prints interrupt/cpu number for easier pinning down of source. See merge request !277
This commit is contained in:
commit
60d7440781
@ -90,6 +90,7 @@ void __attribute__((weak)) vApplicationStackOverflowHook( TaskHandle_t xTask, s
|
||||
panicPutStr("***ERROR*** A stack overflow in task ");
|
||||
panicPutStr((char*)pcTaskName);
|
||||
panicPutStr(" has been detected.\r\n");
|
||||
configASSERT(0);
|
||||
}
|
||||
|
||||
static const char *edesc[]={
|
||||
|
@ -101,8 +101,7 @@ extern xt_handler_table_entry _xt_interrupt_table[XCHAL_NUM_INTERRUPTS*portNUM_P
|
||||
*/
|
||||
void xt_unhandled_interrupt(void * arg)
|
||||
{
|
||||
ets_printf("Unhandled interrupt!\n");
|
||||
//exit(-1);
|
||||
ets_printf("Unhandled interrupt %d on cpu %d!\n", (int)arg, xPortGetCoreID());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user