Im trying to write on a SDCARD, data from different sensors.
In a perfect world, I would like to setup an interrupt macro who read the different sensors and store them into a file created on my SDCARD 100 times by second.
Today, it's impossible. I try with only two different sdcard. One Kingston 4Go class 4 and one Samsung 32Go class 10.
I have a better result with the samsung but it is not enough significant.
The problem is writing a single character with the "append_string_to_file" macro is done in 25.40ms !
Writing 15 character is not more longer. The simple fact to write something take a very long time.
I would like to know if there is a technique to increase speed when writing something in my sdcard ?
Im using a 18LF25k22 running at 32 Mhz ( 64 Mhz don't work and I don't know why yet ).
Im using the hardware SPI with a prescaler of 4 ( the fastest ).
Do you have any idea ?
Thank you for your help