cancel
Showing results for 
Search instead for 
Did you mean: 

Why enable the ADC DMA interruption (DMA_IT_TC, DMA_IT_HT, DMA_IT_TE) by default in the STM32CubeHAL library?

FHong
Associate
  1. It is enable ADC DMA interruption by default in the STM32CubeHAL library, why did you do that?
  2. I do not need the ADC DMA interruption, what should I do?
  3. Please help me, thanks.
2 REPLIES 2
Ozone
Lead II

> It is enable ADC DMA interruption by default in the STM32CubeHAL library, why did you do that?

Perhaps because the complexity of Cube's code generator is already over the head of their coders, and they use a shotgun approach to handle all possible / imagineable use cases ?

> I do not need the ADC DMA interruption, what should I do?

Edit the generated code according your needs, or drop Cube/HAL alltogether.

I did the latter, and do not use or service any Cube-generated code.

FHong
Associate

Hello,

Thank you for helping me!

It is not ​Cube-generated code. It is a part of STM32 HAL library in "HAL_ADC_Start_DMA()" function.