Skip to main content
Visitor II
May 9, 2024
Question

STM32U5A9 GPDMA unusable data with MDF

  • May 9, 2024
  • 1 reply
  • 1039 views

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.

 

    This topic has been closed for replies.

    1 reply

    Explorer II
    October 22, 2024

    Did you solve the problem?