Dear all,
I have been trying to use DMA to transfer data from DARAM to SDRAM on DSKC5510 for couple of days. It doesn't work. I have tried two ways to configure DMA: by DSP/BIOS and by calling CSL in C code. For the second way, I got the code by modifying the given DMA1 example. The weird thing is that when I tried to transfer data from EMIF to DARAM, or from DARAM to DARAM, it works. However, if the data is from DARAM to EMIF, it failed.
I am really confused about it. Could you guys help me to solve this problem?
Thanks a lot!!!
Simon
By the way, I did the checking by:
/* Wait for Block status bit in DMA status register to signal */
/* transfer is complete. */
while (!(check & 0x0020)) {
check = DMA_RGETH(myhDma, DMACSR) ;
}
/* Check data values to make sure transfer happened correctly */
for (i = 0; i <= (N - 1); i++) {
if (dst[i] != src[i]) {
++err;
}
}
Could this be the reason?