Skip to content

Commit 2a24b25

Browse files
committed
wip
1 parent e3c477e commit 2a24b25

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cores/esp8266/core_esp8266_postmortem.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,22 @@ static void uart1_write_char_d(char c) {
231231
}
232232

233233
static void raise_exception() {
234-
//*((char*)0) = 0; // <- works but with a bad reason
234+
#if 0
235+
236+
// works but also showing
237+
// "Fatal exception 29(StoreProhibitedCause)"
238+
*((char*)0) = 0;
239+
240+
#else
241+
235242
__asm__ __volatile__ ("syscall"); // no effect?
236243

237244
fake_rst_reason = FAKE_REASON_USER;
238245
ets_printf_P(PSTR("\nUser exception (panic/abort/assert)"));
239246
__wrap_system_restart_local();
240247

248+
#endif
249+
241250
while (1); // never reached, needed to satisfy "noreturn" attribute
242251
}
243252

0 commit comments

Comments
 (0)