Skip to main content
'SMike
Associate III
Aug 29, 2022 10:01 PM UTC
Question

SysTick_Handler does not update when configured for Azure

When I configure a project to use Azure, the SysTick_Handler is implemented in assembly, which does not call HAL_IncTick(). However, the initialization in main uses the HAL_Delay(), which never gets updated with the tick-time. I was able to work around this, but this seems like a bug.

This topic has been closed for replies.

2 replies

Haithem Rahmani
ST Employee
Sep 20, 2022 1:48 PM UTC

Hi,

the Systick is exclusively reserved for ThreadX as time base source, for HAL you'll need to configure another time source typically using a TIMER.

have a look at the following example.

https://github.com/STMicroelectronics/x-cube-azrtos-h7/blob/main/Projects/NUCLEO-H723ZG/Applications/ThreadX/Tx_Thread_Creation/Src/stm32h7xx_hal_timebase_tim.c

regards

Haithem.

Harvey White
Senior III
Nov 4, 2022 2:42 AM UTC

If the function isn't available, perhaps you ought to eliminate it. That way, it will at least cause a compile error and not cause the programmer to try to figure out why it isn't working.

(Bitten by the same......)