mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cortex-m4_common: Add debugger break in crash.c
This commit is contained in:
parent
419e39fca3
commit
0b7a929ec6
@ -52,6 +52,8 @@ NORETURN void core_panic(int crash_code, const char *message)
|
||||
/* disable watchdog and all possible sources of interrupts */
|
||||
disableIRQ();
|
||||
#if DEVELHELP
|
||||
/* The bkpt instruction will signal to the debugger to break here. */
|
||||
__ASM("bkpt #0");
|
||||
/* enter infinite loop, into deepest possible sleep mode */
|
||||
while (1) {
|
||||
lpm_set(LPM_OFF);
|
||||
|
Loading…
Reference in New Issue
Block a user