Dear All,
I have a SPI+18F2550+SDCard project written in C18 and I am having a problem reading sector 0 of my SD Card.
After the usual CMD0 (returns 1) and CMD1 (returns 0) I issue a CMD17.
At first, a look at the buffer (attached) looks as if it has done nothing, but at the end of the buffer the last two hex values are 0x55AA.
I understand that those bytes reside at the end of the MBR which is at Sector 0.
So it (sort of) works, but when I fire up Winhex to look at Sector 0 there is slightly more data (non zero) on the sector.
So it looks like my CMD17 isnt retrieving the data correctly, I have been able to issue SEND_CID and SEND_CSD commands with no trouble.
Any ideas? I am happy to submit my source, I just wanted to see if there was something obvious you guys thought I was missing?
Kind Regards
Mark