HAL_Delay() not working on STM32F103ZET6 (LED Blinking Example)
I am using a stm32F103ZET6 to just blinking a led but the HAL_Delay() is not working.
I change the HAL_Delay() with for loop and it work.
this is the code that i am using :
while (1)
{
HAL_GPIO_WritePin(Led_301_GPIO_Port, Led_301_Pin, 1);
HAL_Delay(500);
//for (int i=0; i < 500000; i++);
HAL_GPIO_WritePin(Led_301_GPIO_Port, Led_301_Pin, 0);
//for (int i=0; i < 500000; i++);
}
}
I want to work with HAL_Delay because i need to use it in a project with this mcu
