Multiple DMA SC589 Development board

Hey there,

Im developing software to do a block convolution. Im receiving data from the SPORT based on your ADC DAC Audio Playback example code.

Now im trying to read data in between from de SDRAM via DMA. This action gives distortion to the output cause i think it interrupts the SPORT DMA proces.

Im not quite getting how to organize the DMA, is it possible to run these DMA concurrent? Cause eventually i also want to implement the FFTA accelerator and this is also driven by the DMA right?

Gr 

  • 0
    •  Analog Employees 
    on Dec 2, 2020 1:39 PM 2 months ago in reply to BOehlers

    Hi,

    Thanks for the confirming and letting us know about the exact issue.

    Can you please share the updated code to us which you are currently using in order to simulate the distorted issue in ADSP-SC589 EZKIT.
           
    Regards,
    Nishanthi.V

  • 0
    •  Analog Employees 
    on Dec 10, 2020 1:41 PM 2 months ago in reply to BOehlers

    Hi,

    Apologies for the delay caused.

    We have simulated your issue in ADSP-SC589 EZkit.

    To narrow the down the issue, we have done below tests.


    1.Having suspect in cache for SDRAM access we also do flush call before/after MDMA data process and tried with disabling cache, but observe the issue.

    2.Comment out convolution logic,IR_Init() functions. This scenario test contains only talkthru snippet which provides result of the audio without any distortion. This test confirms that buffer size and audio splitup snippet were provided correctly.

    Above test is done by enabling macro #define default_code in adc_dac_playback.c file.

    3.Instead of storing data in SDRAM by using MDMA2, We have created local buffers. So where ever need to store/retrieve the data, we have copied data to/from temporary created buffers instead of using MDMA2.

    But still we observe the distorted audio. For this test, we have to comment #define default_code in adc_dac_playback.c file.

    So we don't suspect the distortion caused by MDMA which would not interrupt SPORT DMA process.

    Can you please confirm the convolution process in your side that you have implemented and let us know if you need any further assistance.


    Regards,
    Nishanthi.V

    adc_dac_playback_Core1.zip