Skip to main content
FAndr.1
Associate
June 23, 2021
Solved

STM32H723VE dma don't work with adc

dma don't work with adc. After first writing dma set flag TEIF. Value wasn't written to buffer. I ported example (adc dma transfer) from stm32h743 to 723, it have this error too.

This topic has been closed for replies.

7 replies

Imen GH
ST Employee
June 23, 2021

Hello,

Welcome to STM32 Community!

Have you tried the STM32CubeH7 firmware example?

I recommend you that you run and get inspired from ADC_DMA example code in STM32CubeH7 at this path:

STM32Cube_FW_H7_V1.8.0\Projects\STM32H743I-EVAL\Examples\ADC\ADC_DMA_Transfer

This example can help you. it describes how to configure and use the ADC to convert an external analog input and get the result using a DMA transfer through the HAL API.

Imen

FAndr.1
FAndr.1Author
Associate
June 24, 2021

Thank you, its was first what I had do. Only replace *.ld and change RCC PLL config for my mcu and crystal. The result is the same - dma stopped after conversion starting with TEIF. I add my test project. Its new clear project with only adc + dma.

TDK
June 24, 2021

Your variables are in DTCM which is not accessible to DMA.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
TDKBest answer
June 23, 2021
FAndr.1
FAndr.1Author
Associate
June 24, 2021

Thank you, I read this article and tried off D-cache but it had no effect. I will try replace buffet to D2 RAM later.