Skip to main content
st_user1
Visitor II
April 20, 2016
Question

uSD Card time of read file problem

  • April 20, 2016
  • 0 replies
  • 344 views
Posted on April 20, 2016 at 10:31

Hi Every body... 

Recently i wrote a program to read a file from uSDHC Card 4GB for infinite loop. Purpose is check the total time of reading a file (eg mp3 file). The code is so simple and noting have any complexity. When the program run, the file started to read normally and every total time of read will store in an array. But when the counter of array will increase to 2000, the total time started to increase. when i reset the program and hardware and start the program to check total time of reading again, the total time is same as before reset.

This is a my Code :

https://www.dropbox.com/sh/evl51iy9jdom5r0/AADD1OZ55YZm77RwyekUHe5ua?dl=0

. The connection is SPI and i tested it with DMA and without DMA, but the results were the same.

Can you tell me where is my mistake... ?

Thanks...

#usd-card
    This topic has been closed for replies.