Skip to main content
Graduate II
February 14, 2025
Solved

Problem with HAL_TIM_RegisterCallback

  • February 14, 2025
  • 1 reply
  • 1055 views

Hi,

can someone help me ? I do not know how to use "HAL_TIM_RegisterCallback" function.

My unsuccessful trial is in attachments. Can someone correct it ?  + to attach the corrected version ?

I tried this example:  https://deepbluembedded.com/stm32-timer-interrupt-hal-example-timer-mode-lab/

and it is working ok, but this example:

https://community.st.com/t5/stm32-mcus/how-to-use-register-callbacks-in-stm32/ta-p/580499

is not working - see screenshot below. .

 

error 2.jpg

 

    This topic has been closed for replies.
    Best answer by AScha.3

    Hi,

    did you enable the callbacks, you want to use ? (in Cube -> project settings)

     

    +

    read

    https://community.st.com/t5/stm32-mcus/how-to-use-register-callbacks-in-stm32/ta-p/580499

     

    1 reply

    AScha.3Answer
    Super User
    February 14, 2025

    Hi,

    did you enable the callbacks, you want to use ? (in Cube -> project settings)

     

    +

    read

    https://community.st.com/t5/stm32-mcus/how-to-use-register-callbacks-in-stm32/ta-p/580499

     

    JerryMC22Author
    Graduate II
    February 14, 2025

    Wou, it is working. Thanks.