Loading...
 
Skip to main content

System Workbench for STM32


ADC/DMA transfer problem

Hello MSchultz,

you don´t have to apologize. I use the same chip header files from ST like you, but in some cases I use definitions from the new HAL or LL libraries, becouse I use SW4STM2 and HAL. ST has no lucky hand in changing from Standard Peripheral Library to this new libraries. Confusions are not to avoid. But one part of the problem lies in the the manuals. There are too less informations.

ADC produce a request to DMA. It can not be the EOC (EOS) perhaps in a sequenz with some conversions, request is send to DMA after every single conversion. In my case DMA has a pending request when it is started. And I don´t know where to clear this request. It seems to be, that the combination "read ADC->DR and clear/set ADC_CR2_DMA" clears this flag. So, perhaps the request is an ADC flag? But in the manuals from ST you don´t read any word about this.

My confusion is: in earlyer programms I wrote (µVision, SPL) for the same purpose, I dont have to clear any flag!

Thanks
Leo

 
Collapse/expand modules below