HAL_delay() issue infinite loop
I am using a nucleo-f767zi to control a reverdi tft display.
The project in CUBEMX ide is using freertos and there for the time base is changed from systick to TIM6.
I am trying to task enable sequence for the screen but i see that i am stack in an infinite loop in HAL_delay() function.
I debbugged it and i see that when i stepped into the code program stops at :
__weak void HAL_Delay(uint32_t Delay)
{
uint32_t tickstart = HAL_GetTick();
uint32_t wait = Delay;
/* Add a freq to guarantee minimum wait */
if (wait < HAL_MAX_DELAY)
{
wait += (uint32_t)(uwTickFreq);
}
// it is blocked in side this loop. which means that HAL_GetTick() has issue.
while ((HAL_GetTick() - tickstart) < wait)
{
}
}
It seems that HAL_GetTick has issue so this means that i am missing some setup.
Can you someone guide me where to look?
Project identifies TIM6 as base time and the interrupt is there in ioc
