2021-06-23 03:30 AM
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.
Solved! Go to Solution.
2021-06-23 06:01 AM
> After first writing dma set flag TEIF
Probably this:
2021-06-23 04:04 AM
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
2021-06-23 06:01 AM
> After first writing dma set flag TEIF
Probably this:
2021-06-23 07:15 PM
2021-06-23 07:22 PM
Your variables are in DTCM which is not accessible to DMA.
2021-06-23 07:24 PM
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.
2021-06-23 07:57 PM
I thought, disabling of D-cash should solve this problem. I have replace adc buffer to D2 ram and dma work now. Thank you
2021-06-24 01:23 AM
Glad to know your issue has been solved, and Thanks for sharing your update.