Reply by Jean-Sebastien Bouchard●April 15, 20082008-04-15
After the data block(512 bytes), do you get the CRC code then back to FF?
What command are you trying, Single block read or Multiple block read?
_____
From: 6... [mailto:6...] On Behalf Of
adeshere
Sent: April 15, 2008 10:53 AM
To: 6...
Subject: [68HC12] HC12 and SD card
Hi,
I am trying to talk to an SD card via SPI.
I can set up the card and read the CSD CSI registers.
BUT
When i read data from sector 0, i get the FF 00 to indicate that the
command was received correctly and then i eventually get the FE to
indicate the data is next.
The data i get back is just 00 00 00 00 00 ....
I've tried many cards
Any ideas ?
regards
Adrian
Reply by "smith.jeff28"●April 15, 20082008-04-15
--- In 6..., "adeshere" wrote: >
> --- In 6..., "smith.jeff28" wrote:
> >
> > What board are you using?
> >
> > What do plan to do with it?
> >
> > Have gotten chan's code?
> >
> > http://elm-chan.org/fsw/ff/00index_e.html
> > I am using it with a HCS12 processor. I figured that, my question was specifically what brand name board. >
> I am trying to access the sectors on the disk and will then implement a
> fat filing system
>
Get the code the link I gave you - it is already done.
Reply by adeshere●April 15, 20082008-04-15
--- In 6..., "smith.jeff28" wrote: >
> What board are you using?
>
> What do plan to do with it?
>
> Have gotten chan's code?
>
> http://elm-chan.org/fsw/ff/00index_e.html
>
I am using it with a HCS12 processor.
I am trying to access the sectors on the disk and will then implement a
fat filing system
I can set up the card and read the CSD CSI registers.
BUT
When i read data from sector 0, i get the FF 00 to indicate that the
command was received correctly and then i eventually get the FE to
indicate the data is next.