2021-04-27 04:00 AM
hello, i´m using stm32f103c8t6 and cubeIDE to write a simple blink code. The program get stuck in the HAL_Delay call. I noticed that the program blocks in the second call of HAL_GetTick(void).
I tried adding this to stm32f1xx_it.c as suggested in other post in this forum:
void SysTick_Handler(void)
{
/* USER CODE BEGIN SysTick_IRQn 0 */
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
/* USER CODE BEGIN SysTick_IRQn 1 */
/* USER CODE END SysTick_IRQn 1 */
}
but without results, any ideas to get this function to work proprerly?
2021-04-28 02:36 AM
are you calling hal_delay() inside an interruption by any chance?
2021-04-28 03:03 AM
Is the SysTick timer enabled ?
Andy