Content originally posted in LPCWare by Lien.Nguyen on Tue Feb 21 20:42:00 MST 2012
The example is only tested with some specific cards. So, maybe it doesnt work with your card. Normally, the cause is timming issue.
Could you check as following:
- Does it work when DMA is enabled/disabled? --> Set MCI_DMA_ENABLED as 0/1 to disable/enable.
- Does it work with 1 block transfering? Multi-blocks transfering? --> Set the number of blocks by WRITE_BLOCK_NUM macro.
- In case it only works with 1 block, not multi-block, please debug the example to get more information. To debug easier, you should disable DMA. Then, place a breakpoint in MCI_IRQHandler function to debug the transfering progress.
Best Regards,
Lien