STM32H7 How can I set the priority of a input capture interrupt (HAL_TIM_IC_CaptureCallback)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-24 7:03 AM
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-24 7:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-24 7:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-24 5:49 PM
There's probably an explanation. Attach your IOC file if you can.
