AnsweredAssumed Answered

stm32cube HAL_IncTick() never called

Question asked by hwe on Jun 25, 2014
Latest reply on Jul 14, 2014 by toan.nguyen
Hi,
I want to use the HAL_Delay() function from the stm32cube "stm32f4xx_hal.c". For proper functionality it requires the HAL_IncTick() to increase the "uwTick" variable.

But where is the function that increases the variable ?

It works when I initialize the HAL_SYSTICK_Config() by myself and count the "uwTick" via the SysTick_Handler() like .

Is this the way it should be done ?
void
SysTick_Handler (void)
{
    HAL_IncTick();
}

I assumed the HAL_Delay() should run out-of the box, just by calling it - am I wrong ?

In the example projects for the "stm32cube" libs (e.g. GPIO_Toggle) it seems that HAL_Delay() runs without calling the SysTick_Config().
What am i missing here ?

Please help

Outcomes