2010-05-06 06:58 AM
Simplified Specification Version 2.00 issue
2011-05-17 06:08 AM
Hi All,
EtaPhi, Can you please shear with us your code to Init the SD card... LastWarrior, Can you please check that SD card (Sandisk) that you use is High capacity card or Standard capacity V2.0 card ? regards mozra2011-05-17 06:08 AM
Hello warrior.last!
I successfully interfaced my STM8S207C8 to a 4 Gb uSD made by Transcend. Even if my code is written in STM8 assembler language, the uSD commands sequence and their arguments are the same. The only difference I see is that my code, after it has sent a command, it keeps sending an idle byte (i.e. $FF) until the uSD card raises the SPI bus, i.e. until my code receives a $FF byte. This allows the uSD card to perform housekeeping operations which are needed to process the following command. I suggest you to check the SD ENABLE line activation too, because when it's lowered, it marks the start of a SPI frame. Regards EtaPhi2011-05-17 06:08 AM
mozra27,
I'll post my code, but I need some time to clean it and to translate my comments which are written in Italian. regards EtaPhi2011-05-17 06:08 AM
Thank you EtaPhi
Regards mozra2011-05-17 06:08 AM
I attached a simple STVD project which initializes a MicroSD and reads a sector.
This code is a simplyfied and translated version of the code I really use in my project. I only tested that there are no building errors, so expect bugs! Regards EtaPhi