cancel
Showing results for 
Search instead for 
Did you mean: 

how to enter ADC1_IRQHandler

Ala
Senior

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?

1 REPLY 1
Diane POMABIA
ST Employee

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