cancel
Showing results for 
Search instead for 
Did you mean: 

ADC DMA problem

Ricardo Hassan
Associate III
Posted on July 08, 2016 at 20:06

Hi,

    I am generating a CubeMX project for a STM32L476 (on a Nucleo boared).  I'm using 3 ADCs, 2 and 3 with DMA.  When I try to start a conversion, I am getting aHAL_ADC_STATE_ERROR_INTERNALin the conversion complete interrupt handle.  Does anyone know what can cause that?  I''m using CmeMX 4.15.1, with firmware package 1.5.1 for STM32L4.  

Thanks,

RIcardo

#adc-dma-cubemx-internal-error
1 REPLY 1
matic
Associate III
Posted on July 09, 2016 at 07:39

If you have correctly configured ADC and you want t transfer result into RAM via DMA, then you should wait for DMA transfer complete interrupt or poll for a DMA TC flag. When this flag is set, DMA already transferred the result to the address which you defined.