STM32H723 DMA works well, but after i copy the data which dma wrote, dma doesnt work anymore.
Hi, thanks for reading my question.
I use DMA for ADC, and it works well, one shot mode, and starts gain, data changed well from the ADC.
But, if I read the data, then DMA works but it cant write it into the memory.
#define MAX_DMA_MEMORY_SIZE 2552
ALIGN_32BYTES (static uint8_t ADC_DMAMemory[MAX_DMA_MEMORY_SIZE]);
HAL_ADC_Start_DMA(&hadc1, (uint32_t *) ADC_DMAMemory, MAX_DMA_MEMORY_SIZE);
and just copy the data 1 time
for(int i = 0; i < nsize; i++)
{
pVal[i] = ADC_DMAMemory[i+ioffset];
}
I use dma for 2552 data, and copy 2048 data to pVal. So just copied 389th array to 2437th.
and after this copy, DMA refresh only 0 to 384th, and 2438 to 2552.
DMA never write data to the address where i copied.
if i dont copy data, it works well, every time, it writes new data.
Please help me, i just went through H7 weird data cache usage, and i met another problem.
Thanks in advance.