Skip to main content
KKase.1
Associate
Aug 24, 2021 2:03 PM UTC
Question

STM32H7 How can I set the priority of a input capture interrupt (HAL_TIM_IC_CaptureCallback)?

In STM32CubeIDE I can't find the setting under SystemCore->NVIC or I just don't know the name?

I have two input capture channels on TIM3. The global interrupt for TIM3 is disabled.

In particular I want to set it higher than a "EXTI line interrupt".

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
Aug 24, 2021 2:23 PM UTC

There is only one interrupt for TIM3, all interrupt sources from TIM3 trigger that one interrupt. So that's the interrupt you want to set the priority for. Maybe Cube calls it "global TIM3 interrupt", that's how it's called in the NVIC chapter of RM. The callbacks are product of Cube's default handler.

JW

KKase.1
KKase.1Author
Associate
Aug 24, 2021 2:29 PM UTC

Okay, thanks.

It's a little bit strange that the interrupt (HAL_TIM_IC_CaptureCallback) is called but in STM32CubeIDE the global interrupt for TIM3 shows as disabled.

TDK
Aug 25, 2021 12:49 AM UTC

There's probably an explanation. Attach your IOC file if you can.

"If you feel a post has answered your question, please click ""Accept as Solution""."