Possible solutions for faster SPI -> SD writes on Adalogger (SAMD21)

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!

 

Advertisements

2 thoughts on “Possible solutions for faster SPI -> SD writes on Adalogger (SAMD21)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s