AnsweredAssumed Answered

HAL timer and ISR priority

Question asked by achterop.sietse on Dec 8, 2016
Latest reply on Dec 8, 2016 by Radek R

Hello,

Using current HAL-software generated with cubemx on stmf4_discovery board.

I use TIM7 as an interrupt generating timer, set at say 100 msec.

In the ISR I do:

    i = HAL_GetTick();
    delayms(12);
    tt  = HAL_GetTick()-i;

where delayms is a busy waiting loop (normally our application code would go there).

And tt is a global int.

I would assume that tt would normally be something like 11, 12 or 13.

But it is always 0.

The (default) interrupt priority of TIM7 is much lower (higher number) than Systick, so why isn't the system tick not updated in that 12 msec?

 

Or am I missing something?

Outcomes