Skip to main content
KKase.1
Associate
August 24, 2021
Question

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

  • August 24, 2021
  • 3 replies
  • 1243 views

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
August 24, 2021

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
August 24, 2021

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
August 25, 2021

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