STM32H753XIH6, can't get HAL_HRTIM_Compare1EventCallback to trigger, can anyone help me?
Hi,
For a project I'm working on I need to use the HRTIM timer. This is a
timer I haven't used before and I can’t seem to get the
HAL_HRTIM_Compare1EventCallback to trigger. The ‘normal’
HAL_HRTIM_RepetitionEventCallback works so the timer runs (tested With the
Master Timer and with Timer A running together and only with the Master Timer
Started).
For the test I only set and reset digital IO during the Callback events.
But progam never seems to execute the HAL_HRTIM_Compare1EventCallback.
Can you help me to get the HAL_HRTIM_Compare1EventCallback to work?
Some information about the project:
In this project I need to use the following timers/compares to complete
a certain routine:
· Master Timer
· Master Compare 1
· Master Compare 2
· Timer A
· Timer A compare 1
· Timer B
· Timer B Compare 1
· Timer B Compare 2
· Timer B Compare 3
· Timer C
· Timer C compare 1
The master timer and Timer A have to start together, MC1 triggers Timer
B, MC2 Trigger timer C, and the compare functions of the other timers have
different functions like setting or resetting a non-Timeroutput GPIO and other
funtions.
The code in the next post is the HRTIM.C file, generated by CUBEMX. The
compare values in this file are not the values needed over time but are only
set to generate default test code.
The HAL_HRTIM_RepetitionEventCallback triggers every 200ms, and all the
other timer/compare functions have to be handled within that time span.
If you can help me to get the HAL_HRTIM_Compare1EventCallback to work
with let’s say the master timer and Timer A, then I know I can build the
complete code I need. So that would be much appreciated.
I probably forgot a setting or have to change a setting, or…… But as
said, this is the first time I am using the HRTIM in any MCU so I could use
some help. I already read the HRTIM Cookbook but I couldn’t find the
information I needed from that file.
