better unhandled exception handling #598

This commit is contained in:
rusefi 2018-07-28 13:42:06 -04:00
parent a44ba2f2aa
commit ddedfe104e
1 changed files with 8 additions and 0 deletions

View File

@ -83,6 +83,14 @@ void baseHardwareInit(void) {
BOR_Set(BOR_Level_1); // one step above default value
}
void _unhandled_exception(void) {
/*lint -restore*/
chDbgPanic3("_unhandled_exception", __FILE__, __LINE__);
while (true) {
}
}
void DebugMonitorVector(void) {
chDbgPanic3("DebugMonitorVector", __FILE__, __LINE__);
while (TRUE)