2016-10-26 01:05 AM
Hello,
I'm using theHRTIM1
to control a flyback converter.The
FAULT5
input is used to stop the converter in case of an error. Now I want to use an interrupt service routine to react to the fault immediately. Therefore I've enabled the fault interrupt in my timer initialization:HAL_NVIC_EnableIRQ(HRTIM1_FLT_IRQn);
I've also added the according interrupt handler routine:HRTIM1_FLT_IRQHandler()
But the interrupt handler routine is not called when the fault is triggered. (I'm sure the fault input is working because the converter stops immediately). I'm also unsure whichHAL IRQHandler
must be called to branch to the accordingHAL_HRTIM_Fault5Callback()
routine. Could you please help me to setup my system to call the interrupt and the callback routine in case of the fault? #hrtim-fault-irqhandler2016-10-26 05:35 AM
Hi finsterbusch.florian,
I recommend to get help to develop your HRTIM application from the following sources:- Application note - Application note - Ready-to-use examples ''HRTIM_BuckBoost'' and ''HRTIM_BuckBoost_AN4449'' ''HRTIM_snippet'' you find at the STM32CubeF3 at this path: STM32Cube_FW_F3_V1.6.0\Projects\STM32F3348-Discovery\Examples\HRTIM-> You check the STM32F3xx_it.c file where the IRQ Handlers are called-Hannibal-2016-10-26 06:05 AM
Likely needs the IT flag enabled on the TIM (peripheral) side