Skip to main content
Associate II
February 4, 2026
Solved

GetTick() in LL Driver

  • February 4, 2026
  • 1 reply
  • 172 views

Hello,

Normally we use HAL_GetTick() in HAL driver.

I want to use GetTick() in STM32 LL driver. 

How to get and use GetTick() in STM32 LL driver?

Best answer by Andrew Neil

You can use both HAL and LL together in a project.

AndrewNeil_0-1770202263949.png

https://www.st.com/resource/en/user_manual/um1725-description-of-stm32f4-hal-and-lowlayer-drivers-stmicroelectronics.pdf#page=44

via: https://www.st.com/en/embedded-software/stm32cubef4.html#documentation

 

Or you could just look at how HAL_GetTick() works (the source is provided), and implement that yourself ...

1 reply

Andrew Neil
Andrew NeilBest answer
Super User
February 4, 2026

You can use both HAL and LL together in a project.

AndrewNeil_0-1770202263949.png

https://www.st.com/resource/en/user_manual/um1725-description-of-stm32f4-hal-and-lowlayer-drivers-stmicroelectronics.pdf#page=44

via: https://www.st.com/en/embedded-software/stm32cubef4.html#documentation

 

Or you could just look at how HAL_GetTick() works (the source is provided), and implement that yourself ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mangesh1Author
Associate II
February 4, 2026

Hi @Andrew Neil

I followed your instructions and its works. 
Thak you very mch for your quick support.