Skip to main content
Associate III
February 14, 2025
Solved

Problem with HAL_TIM_RegisterCallback

  • February 14, 2025
  • 2 replies
  • 1458 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

 

2 replies

AScha.3
AScha.3Best answer
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

 

If you feel a post has answered your question, please click on " Best Answer ".
JerryMC22Author
Associate III
February 14, 2025

Wou, it is working. Thanks.