cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with HAL_TIM_RegisterCallback

JerryMC22
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Chief III

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 "Accept as Solution".

View solution in original post

2 REPLIES 2
AScha.3
Chief III

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 "Accept as Solution".

Wou, it is working. Thanks.