/* USER CODE END 4 */
/**
* @brief This function is executed in case of error occurrence.
* @retval None
*/
void Error_Handler(void)
{
/* USER CODE BEGIN Error_Handler_Debug */
/* User can add his own implementation to report the HAL error return state */
printf("Erreur :\nFichier : %s\nLigne : %d\n", __FILE__, __LINE__); // Afficher le fichier et la ligne où l'erreur s'est produite
__disable_irq(); // Désactiver les interruptions
while (1)
{
}
/* USER CODE END Error_Handler_Debug */
}