Happiness is SdFat with DMA SPI

stimmer,

Edit: after posting this I changed RX FIFO handling to DMAC_CFG_FIFOCFG_ASAP_CFG and things seem to work better but still errors.

I attached a zip file with a test library and a sketch that demonstrates the problem (you must be logged in to see the attachment).

Put the DueSPI folder in libraries and run the due_spi sketch to see the problem.

I will be interested to see if changing Bus Matrix arbitration can make this work.

alvesjc,

You may be able to increase the speed of the Standard SD library. I wrote the base code for the Standard SD library about three years ago so I have no interest in that old code.

DueSPI.zip (2.32 KB)