am85
Member level 2
- Joined
- May 30, 2011
- Messages
- 46
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- Germany
- Activity points
- 1,661
Hi,
I am using a 32 GB 400x SDHC card. I am writing to the SD card using SPI mode at 50 MHz. I use a Buffer to store the data first and then write to the card. 512 Bytes from the buffer are ready for the SD card every 100 us. Normally, it takes around 88 us to write one sector on the SD card. However, sometimes there is a very long write delay (10-50 ms) between sectors. Afterwards, it goes back to the usual 88 us/sector. It is totally random, so sometimes it happens and sometimes not, and with no fixed delay time. I have a 300-sector buffer, but it is still not enough. It seems the delay happens more than once successively causing delays longer than the buffer can handle.
Any ideas why this happens or how to fix it ?
Thanks.
I am using a 32 GB 400x SDHC card. I am writing to the SD card using SPI mode at 50 MHz. I use a Buffer to store the data first and then write to the card. 512 Bytes from the buffer are ready for the SD card every 100 us. Normally, it takes around 88 us to write one sector on the SD card. However, sometimes there is a very long write delay (10-50 ms) between sectors. Afterwards, it goes back to the usual 88 us/sector. It is totally random, so sometimes it happens and sometimes not, and with no fixed delay time. I have a 300-sector buffer, but it is still not enough. It seems the delay happens more than once successively causing delays longer than the buffer can handle.
Any ideas why this happens or how to fix it ?
Thanks.