It takes time to write to the SDHC card

Hello!

I currently want to save the sensor data obtained by SPI communication to the microSDHC card by SPI communication.

Writing to the SDHC card is possible without problems, but writing takes time.

I want to acquire and write sensor values at a sampling frequency of 1000 Hz, but it takes about 18 ms to write.

What I tried to improve
・ Use of DMA
・ Change of priority
・ Use multiple arrays

Are there any other possible ways?

Thank you!

--------------------------------

Append

・I also use BLE communication and soft devices. I learned that the flash operation takes time when using a soft device.
And writing to SD card is 512 bytes each

・Use fatfs example

Parents Reply Children
Related