Use software counter in error handler after HAL is deactivated
This commit is contained in:
+1
-1
@@ -556,7 +556,7 @@ void Error_Handler(void)
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
HAL_GPIO_TogglePin(led_error.port, led_error.pin);
|
HAL_GPIO_TogglePin(led_error.port, led_error.pin);
|
||||||
HAL_Delay(250);
|
for(volatile uint32_t i = 0; i < 4000000; i++);
|
||||||
}
|
}
|
||||||
/* USER CODE END Error_Handler_Debug */
|
/* USER CODE END Error_Handler_Debug */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user