This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SD-Card - Problem using DMA LPC2368

Hi all

I'm doing a SD-Card interface for my board. I finally initialized my card!
Now Im having a problem with DMA. Im using the NXP driver(mci) and they use the DMA but its not working at all..
Every time occurs timeout in this line:
" . . .

/* Start DMA Memory to Peripheral transfer. */ mci_dma_start (DMA_WRITE, buf); MCI_DATA_CTRL = 0x99; for (i = DMA_TOUT; i; i--) { if (GPDMA_RAW_INT_TCSTAT & 0x01) {

/* Data transfer finished. */ break; }

. . . "

Someone can help me here?
How works this DMA?
Anybody knows what is the writing/reading sequence of SD-Card?

Sorry for my poor english..

Fabio

0