Skip to main content
Yang Yang
Associate III
June 6, 2019
Solved

Why SDIO needs about 3ms on transferring only 512Bytes

  • June 6, 2019
  • 1 reply
  • 607 views

Hello, ST experts

​

STM32F415RGT6 is used on custom board. Everything looks fine except that SDIO opertions.

f_write function is called at an interval about 500ms to write 512Bytes to SD card. SDIO_CLK is 24MHz, 4bit bus wide. I really don't know why there are activities lasting 3ms on sdio_cmd pin.

Best Regards

Yang

This topic has been closed for replies.
Best answer by Tesla DeLorean

Haven't timed it, but single sector writing is very inefficient, there is a lot of command overhead, blocks on the media are typically around 128KB. If your writes aren't aligned FatFs will need to read and write several sectors.​

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
June 6, 2019

Haven't timed it, but single sector writing is very inefficient, there is a lot of command overhead, blocks on the media are typically around 128KB. If your writes aren't aligned FatFs will need to read and write several sectors.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..