ADC DMA problem
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-07-08 11:06 AM
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
Labels:
- Labels:
-
STM32CubeMX
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-07-08 10:39 PM
Posted on July 09, 2016 at 07:39If 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.
