2020-06-09 02:03 AM
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 .
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
2020-06-09 11:56 PM
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.
2020-06-10 03:11 AM
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