cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt Priorties : Understanding and Configuring for STM32G071 with STM32CubeIDE:

Karan 123
Senior

Hi,

I am using STM32G071 Custom board . I have to configure Interrupts as below:

1) External Interrupt Highest Priority.

2) Comparator Interrupt Second Highest Priority.

3) Timer Basic Lowest Priority.

or so on..

How to I set in below with STM32CubeIDE .

0693W000001qJ74QAE.png

EXTI line 2 and line 3 interrupts

- Only Used PF2 - EXTI-2

- Why also EXTI line 3 is shown ?

ADC1, COMP1 and COMP2 interrupts (COMP interrupts through EXTI lines 17 and 18)

Only Used COMP1

- Why also ADC1 COMP2 ?

TIM6, DAC1 and LPTIM1 interrupts (LPTIM1 interrupt through EXTI line 29)

- Why all TIM6, DAC1 and LPTIM1 as shown ?

Why combination of peripheral are shown as above ?

Do to set them these individually ?

Thanks in advance..

--

Karan

2 REPLIES 2
berendi
Principal

Because the hardware works that way. Read the NVIC chapter in the reference manual. Clicking around in CubeMX is no substitute for reading the documentation.

It's not only the RM which has to be read, but also the Programming Manual to Cortex-M0+ (or the respective ARM TRM, but that's outside ST's website). And, note, that in that Programming Manual, interrupts fall into a broader group of "exceptions", so you want to read everything about "exception priorities" there

JW