Hint

Refer to QMK’s documentation for details on how to use community modules

crash

Utilities to check why (if) last execution crashed.

Warning

Only works on Cortex-M microcontrollers, but apparently, not on M4F.

struct crash_info_t
[source]

Information about a crash.

size_t stack_depth
[source]

How nested the call stack was when program crashed.

backtrace_t call_stack[CRASH_UNWIND_DEPTH]
[source]

Buffer storing stack frames (only the first stack_depth ones are valid).

char msg[CRASH_MESSAGE_LENGTH]
[source]

Reason of the crash, null-terminated.

bool get_crash(crash_info_t *info)
[source]

Get information about last execution.

Parameters:
  • info – Pointer where the information will be written.

Return: Whether previous execution crashed
  • true: Call stack that lead to crashing has been copied to info.

  • false: info left untouched.