MCPcopy Create free account
hub / github.com/kiibohd/controller / __stack_chk_fail

Function __stack_chk_fail

Lib/sam.c:115–127  ·  view source on GitHub ↗

Stack Overflow Interrupt

Source from the content-addressed store, hash-verified

113
114// Stack Overflow Interrupt
115void __stack_chk_fail(void)
116{
117 uint32_t sp = __get_MSP();
118 print("Stack overflow!" NL );
119 print(" SP = ");
120#if defined(_bootloader_)
121 printHex(sp);
122#else
123 printHex32(sp);
124#endif
125 print(NL NL);
126 fault_isr();
127}
128
129// Default ISR if not used
130void unused_isr()

Callers

nothing calls this directly

Calls 2

__get_MSPFunction · 0.85
fault_isrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…