We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c477e commit 2a24b25Copy full SHA for 2a24b25
cores/esp8266/core_esp8266_postmortem.cpp
@@ -231,13 +231,22 @@ static void uart1_write_char_d(char c) {
231
}
232
233
static void raise_exception() {
234
- //*((char*)0) = 0; // <- works but with a bad reason
+#if 0
235
+
236
+ // works but also showing
237
+ // "Fatal exception 29(StoreProhibitedCause)"
238
+ *((char*)0) = 0;
239
240
+#else
241
242
__asm__ __volatile__ ("syscall"); // no effect?
243
244
fake_rst_reason = FAKE_REASON_USER;
245
ets_printf_P(PSTR("\nUser exception (panic/abort/assert)"));
246
__wrap_system_restart_local();
247
248
+#endif
249
250
while (1); // never reached, needed to satisfy "noreturn" attribute
251
252
0 commit comments