cancel
Showing results for 
Search instead for 
Did you mean: 

Simplified Specification Version 2.00 issue

mo
Associate
Posted on May 06, 2010 at 15:58

Simplified Specification Version 2.00 issue

5 REPLIES 5
mozra272
Associate II
Posted on May 17, 2011 at 15:08

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

mozra

fggnrc2
Associate II
Posted on May 17, 2011 at 15:08

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

EtaPhi

fggnrc2
Associate II
Posted on May 17, 2011 at 15:08

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

EtaPhi

mozra272
Associate II
Posted on May 17, 2011 at 15:08

Thank you EtaPhi

Regards

mozra

fggnrc2
Associate II
Posted on May 17, 2011 at 15:08

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