cancel
Showing results for 
Search instead for 
Did you mean: 

Set an interrupt preemption priority for a pin using NVIC

TechyAry
Associate III

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:

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

You have 0 bits for preemption selected, so 0 is the only preemption priority available.

TDK_0-1751215909573.png

 

Change the priority group to have preemption bits and you can select something other than 0.

TDK_1-1751215955792.png

 

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

View solution in original post

3 REPLIES 3
TDK
Super User

Click the dropdown to change it. Include your IOC file if you're having trouble.

TDK_0-1751205585764.png

 

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

The drop-down contains only that value 0. It doesn't provide any other values (already tested).
My LED.ioc file is attached. 

TDK
Super User

You have 0 bits for preemption selected, so 0 is the only preemption priority available.

TDK_0-1751215909573.png

 

Change the priority group to have preemption bits and you can select something other than 0.

TDK_1-1751215955792.png

 

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