I'm working on a samc21 and using the fat libraries provided in ASF.
I have a program that takes from serial information and has to write to an SD card. The amount of bytes its around 50KB.
I'm using the internal oscillator (48MHz).
The problem is that the write operation is extremely slow, like 5 seconds every 1KB of information.
Do I have to change the oscillator, or fat is always going to be that slow? I mean, when I write to the SD card from the computer it takes like a second.
Please help.
Where do I configure the SPI speed?