2023-04-29 04:50 AM
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?
2023-05-03 05:03 AM
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