Skip to main content
Florian1
Associate II
October 26, 2016
Question

STM32F3 / HRTIM1 with Fault Interrupt

  • October 26, 2016
  • 2 replies
  • 1648 views
Posted on October 26, 2016 at 10:05

Hello,

I'm using the

HRTIM1

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 which

HAL IRQHandler

must be called to branch to the according

HAL_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-irqhandler
This topic has been closed for replies.

2 replies

Walid FTITI_O
Visitor II
October 26, 2016
Posted on October 26, 2016 at 14:35

Hi finsterbusch.florian, 

I recommend to get help to develop your HRTIM application from the following sources:

- Application note

http://www.st.com/content/ccc/resource/technical/document/application_note/13/d6/48/9d/11/11/4c/08/DM00121475.pdf/files/DM00121475.pdf/jcr:content/translations/en.DM00121475.pdf

- Application note

http://www.st.com/content/ccc/resource/technical/document/application_note/ec/9c/b0/81/b5/12/4e/21/DM00108726.pdf/files/DM00108726.pdf/jcr:content/translations/en.DM00108726.pdf

- 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-

Tesla DeLorean
Guru
October 26, 2016
Posted on October 26, 2016 at 15:05

Likely needs the IT flag enabled on the TIM (peripheral) side

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..