Have you configured / activated the SysTick?
It looks like you're using CubeMX, there's a a setting somewhere you have to click, quite on top under system or so.
In source activation should be done in the baic MCU config.
Or just add this:
/* use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); // TICK_INT_PRIORITY = 0 HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0); HAL_NVIC_EnableIRQ(SysTick_IRQn);
I'm not familar with the code (I'm a new user), I prefer to go through Cube IDE. I suppose it's this tab I need to activate ?
And I select SysTick probably ?
no parameters to be configured ? What does that mean ? I specify that I have an evaluation board STM32L552E-EV.
Technically it is classified as a System Handler not an IRQ, and it also doesn't use the HALs callback abstraction.
The MCU doesn't start it automatically, and it needs a clock cycle count that relates the processor's clocking speed with the desired interrupt rate. This is often 1 KHz, but doesn't have to be.
It is implemented as a 24-bit down counter.