As with any problem, one way out is to google the problem and see if the community has resolved it already. With writing SD cards, it appears that we have at least three lines of attack:
- DMA
- Clocking SPI faster
- FIFOs (I don’t think we have these on SAMD21’s SPI)
Community wise, we have content on Arduino, Atmel, and ARM forums:
[ SdFat with DMA SPI ] which has been successful on Arduino Due. Since SAMD21’s SPI interface supports DMA as well [ Sec. 27 | pdf p.501 ], a similar solution could be developed.
SdFat’s documentation is [here].
[ ZeroDMA ] could be used to setup the DMA controller on SAMD21
[ SPI max speed ] along with using [ FatFs ]
[ GPIO ] would limit SPI to 12 MHz, but I’m not sure where the GPIO module is being used here.
[ Quickstart guide ] for setting up DMA is referenced here as well.
Now to dig into the libraries and see how SD card writes are configured!
really cool http://elm-chan.org/docs/mmc/mmc_e.html
LikeLike
I’m keeping an eye on this! If you come up with a solution (SD card with DMA), let us know 🙂
LikeLike