2025-06-29 5:22 AM
It's possible to set an interrupt priority for a pin in STM32F411 MCU, right?
My PC13 pin (user button) is set to GPIO_EXTI13 and I want to give it the preemption priority 3 in the NVIC (STM32Cube IDE ver: 1.18.1) but it's seemingly not possible!
Its value is zero and immutable!
Here's a screenshot:
Solved! Go to Solution.
2025-06-29 9:52 AM
You have 0 bits for preemption selected, so 0 is the only preemption priority available.
Change the priority group to have preemption bits and you can select something other than 0.
2025-06-29 6:59 AM
Click the dropdown to change it. Include your IOC file if you're having trouble.
2025-06-29 7:34 AM
2025-06-29 9:52 AM
You have 0 bits for preemption selected, so 0 is the only preemption priority available.
Change the priority group to have preemption bits and you can select something other than 0.