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
I use SanDisk's 32GB SDHC card.Since there is no other SD card, I have not tried it.
All MPU data is necessary and cannot be reduced.
Do you have a specification for the flash chip used in the SanDisk card, so that you can verify the timing parameters?
Maybe solvedInterrupted except f_write!
Thank you for your cooperation
Ok, I will close the case then.
Good luck with your project