stm32h747xi Cannot use DMA to continuously store ADC-converted data.
Hello.
I'm using a development board STM32H747I Disco. i'm using a DAC to output a Sinus signal and read it through the ADC. the DMA is able to store the data correctly in normal mode, but not in circular mode. If the DMA can fit exactly one or more cycles of data then the result is correct, otherwise the result is very confusing.
My ADC code references the ADC_DMA_Transfer tutorial for the H7 platform to invalidate the cache at half and full DMA. And set the buffer alignment at the beginning.
/* Definition of ADCx conversions data table size */
#define ADC_CONVERTED_DATA_BUFFER_SIZE ((uint32_t) 256) /* Size of array aADCxConvertedData[] */
/* Variable containing ADC conversions data */
ALIGN_32BYTES (__IO uint16_t aADCxConvertedData[ADC_CONVERTED_DATA_BUFFER_SIZE]);
Can anyone help me please?
