cancel
Showing results for 
Search instead for 
Did you mean: 

I want to measure the speed of reading a binary file (image) in SDCARD.

SHEHERHER
Associate II

Hi!!!

I am using STM32H743BIT6 MCU and I want to measure the speed of reading a binary file (image) in SDCARD.

SDMMC1 is set and SD 4 wire bus is set.

On which pin should I take the measurement on the MCU? Also, the unit of speed is (Mbyte/s). Is it possible to convert it to frequency?

2 REPLIES 2

Write a function that reads a 32MB file in 32KB chunks. Use HAL_GetTick() to get a start and end time, and thus the duration. Calculate as bytes per second.

Print to screen or serial terminal.​

Find a GPIO you can use, drive it high/low at beginning and end, use a scope or stopwatch to capture elapsed time.

Time and Frequency have a known relationship. ​

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

Thank you!!, I learned about SD card speed.!!