Skip to content

Commit 84a59aa

Browse files
authored
Add reporting address interrupted by Soft WDT (#8851)
1 parent 2303632 commit 84a59aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp8266/core_esp8266_postmortem.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ static void postmortem_report(uint32_t sp_dump) {
182182
}
183183
else if (rst_info.reason == REASON_SOFT_WDT_RST) {
184184
ets_printf_P(PSTR("\nSoft WDT reset\n"));
185+
ets_printf_P(PSTR("\nException (%d):\nepc1=0x%08x epc2=0x%08x epc3=0x%08x excvaddr=0x%08x depc=0x%08x\n"),
186+
rst_info.exccause, /* Address executing at time of Soft WDT level-1 interrupt */ rst_info.epc1, 0, 0, 0, 0);
185187
}
186188
else if (rst_info.reason == REASON_USER_STACK_SMASH) {
187189
ets_printf_P(PSTR("\nStack smashing detected.\n"));

0 commit comments

Comments
 (0)