|
@@ -406,6 +406,16 @@ void _Error_Handler(char *file, int line)
|
|
|
MC_MotorStop(&MC_StarFlag);
|
|
|
Power12V_Driver_Process(RESET);
|
|
|
Disable_PwmGpio_Out();
|
|
|
+
|
|
|
+ //Debug£¬Êä³öµ±Ç°´íÎóÐÅÏ¢
|
|
|
+ #if 1
|
|
|
+ uint8_t PrintData[32] = {0,};
|
|
|
+ memcpy((uint8_t*)PrintData, file, strlen(file));
|
|
|
+ memcpy((uint8_t*)(PrintData + strlen(file)), (uint8_t*)" , ", 3);
|
|
|
+ memcpy((uint8_t*)(PrintData + strlen(file) + 3), &line, sizeof(line));
|
|
|
+ SendData(ID_MC_BC, MODE_REPORT , 0xFF20, PrintData);
|
|
|
+ HAL_Delay(200);
|
|
|
+ #endif
|
|
|
}
|
|
|
/* USER CODE END Error_Handler_Debug */
|
|
|
}
|