Skip to main content
Visitor II
August 29, 2022
Question

SysTick_Handler does not update when configured for Azure

  • August 29, 2022
  • 2 replies
  • 1263 views

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

    ST Employee
    September 20, 2022

    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.

    Graduate
    November 4, 2022

    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......)