Src/main.c
/**
  * @brief  This function is executed in case of error occurrence.
  * @param  None
  * @retval None
  */
@brief  This function is executed in case of error occurrence.
@param  None
@retval None
@brief This function is executed in case of error occurrence . @param None @retval None
static void Error_Handler(void)
{
  while(1)
  {
    HAL_Delay(1000);
  }
}
static void Error_Handler ( void ) { while ( 1 ) { HAL_Delay ( 1000 ) ; } }
@brief  This function is executed in case of error occurrence.
@brief This function is executed in case of error occurrence .
/* Toogle LED2 for error */