• AVR Freaks

Hot!Problem with DMA transfer using DDR

Author
pandaexpress
Starting Member
  • Total Posts : 51
  • Reward points : 0
  • Joined: 2019/01/17 18:39:29
  • Location: 0
  • Status: offline
2019/03/23 17:29:12 (permalink)
0

Problem with DMA transfer using DDR

Hi all,
 
I'm working getting data from a camera using the DMA and a whole port. When the destination buffer is located in RAM everything works as expected, but when I use a buffer in DDR the DMA transfer does not finish nor writes anything, is there some setting for using the DDR? 
 
this is the location of my dest buffer (0xA8753000).
 
My settings are MPLAB 5.10, Harmony 2.06 and XC32 2.15
#1

1 Reply Related Threads

    pandaexpress
    Starting Member
    • Total Posts : 51
    • Reward points : 0
    • Joined: 2019/01/17 18:39:29
    • Location: 0
    • Status: offline
    Re: Problem with DMA transfer using DDR 2019/03/23 22:13:00 (permalink)
    0
    After a little debugging found out that the dma gets stuck at DMABUSY, but if I made the transaction size smaller (destSize = 10 bytes) the transaction finish with SYS_DMA_TRANSFER_EVENT_COMPLETE. I am still unsure about what the problem is, I even check if the destination address in being correctly translated to physical memory and everything looks good.
    #2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5