Example sd card speed problem?
Posted: Fri Sep 22, 2017 3:02 am
Hello,everyboy!
I have a problem do not know how to solve,I want to help everyone. Thanks.
The question is about sd card. I use the demo of sd_card.
But the speed is default : 25MHZ.I have see the sd card is high speed,but why it will init to low speed ?
I see the code ,it read csd register's max data transfer rate.Set the speed according to the return value. (0x32 0r 0x5A)
If it return value is 0x32,it will set LS bus mode(25MHZ). If it return value is 0x5A,it will set HS bus mode(50MHZ).
So now it return 0x32,How can i switch it to HS bus mode? I want spend a small amount of time to store large amounts of data.
I have a problem do not know how to solve,I want to help everyone. Thanks.
The question is about sd card. I use the demo of sd_card.
But the speed is default : 25MHZ.I have see the sd card is high speed,but why it will init to low speed ?
I see the code ,it read csd register's max data transfer rate.Set the speed according to the return value. (0x32 0r 0x5A)
If it return value is 0x32,it will set LS bus mode(25MHZ). If it return value is 0x5A,it will set HS bus mode(50MHZ).
So now it return 0x32,How can i switch it to HS bus mode? I want spend a small amount of time to store large amounts of data.