cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5A9 GPDMA unusable data with MDF

ByDFlower
Associate

Hi, I'm trying to use AMC1336 Delta-Sigma Modulator with STM32U5A9 MDF. I have tried using polling and interrupts for data acquisition and got expected results. But when I tried switching to GPDMA the data jumped around and is not usable. I took 100 samples and graphed them out. For both graphs below I used the same MDF configuration.

Acquisitioned data when using interrupts:

IT_dc.PNG

 

Acquisitioned data when using GPDMA:

DMA_dc.PNG

 

My configuration for GPDMA:

GPDMA_config.PNG

 

My configuration for MDF:

MDF_config.PNG

My guess is that some data transfers happen before MDF can process a whole sample. I looked at "How to use the GPDMA for STM32 MCUs" document but have no idea how to fix this issue. Any suggestions would be appreciated.

  

 

1 REPLY 1
James613
Associate II

Did you solve the problem?