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 arraysAre there any other possible ways?
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
How much data are you writing in each write operation?
I assume you would get more efficient SD access if you buffer the ADC data in 512 byte chunks so you don't have to write to the card as often?
Thank you for your reply.I already have data stored in a 512-byte buffer before writing.