Skip to main content
Ala
Senior
April 29, 2023
Question

how to enter ADC1_IRQHandler

  • April 29, 2023
  • 1 reply
  • 1370 views

I have a stm32f030c8t6. I want to enable its ADC1 interrupt. in CubeMX, when I enable ADC DMA, there is no section where I can configure RANK. in the generated program, in stm32f0xx_it.c, I can see two functions below

void DMA1_Channel1_IRQHandler(void){}
void ADC1_IRQHandler(void){}

but the program does not enter these two interrupt handlers. is there any thing that I should enable in main.c file?

This topic has been closed for replies.

1 reply

ST Employee
May 3, 2023

Hi @Ala​ 

You don't have to do anything extra in the Main.c function

If the program doesn't fit in the interrupts it is possible that there are no interrupts or that they are badly initialized. 

Can you check if ADC and DMA interrupt init have well done?

Regards

Diane