2021-10-24 03:22 AM
Nucleo F334R8. I setup HRTIM Timer A to generate 2 pulses per HRTIM cycle with Compare 1,2, 3 and 4 registers and this generates the expected outputs. However HRTIM_TIMxDIER is left at 0 by the cube MX code.
Under NVIC settings for HRTIM1 I have ticked "HRTIM timer A global interrupt"
Under Timer A settings I have "Interrupt Requests Sources Selection" set to 1 and "1st Interrupt Request Source" set to "Timer Compare 4 interupt enable"
Compare 4 register is set to a value which controls the reset condition for the output and this works fine. The HR timer generates PWM outputs as expected, just the interrupts are not generated.
I start the timer with "HAL_HRTIM_SimpleOCStart_IT"
If I manually set HRTIM_TIMxDIER to value 0x0008 then the interrupt works as expected.
.IOC file attached.
Am I missing something ?
Thanks,
Oliver
2021-10-24 03:41 AM
Do you find it surprising that there are bugs in Cube/CubeMX, especially in the darker corners?
JW