There doesn't appear to be any code attached.
Where did you get the original code for interfacing SD cards if you don't mind my asking?
There doesn't appear to be any code attached.
Where did you get the original code for interfacing SD cards if you don't mind my asking?
Try changing this line to not use the hardware.
I think you have the PIC pins mixed up.Code:SDC_UseHardSPI = TRUE ' Use hardware SSP port for SPI.
And I think you will have better luck if you run the PIC from a 4MHz clock. Then you can run the whole thing from 3 volts and not have to worry with the resistors.
Do you have the SD pins 8 and 9 pulled up to 3 volts? That is also needed.
Dave
Always wear safety glasses while programming.
What errors are returned?
For example, what do you receive here?
Code:Gosub FSInit Serout2 PORTC.6, 16780, ["Init: ", Dec FAT_error, " ", Dec SDC_status, " ", Dec SDC_response, $d, $a]
Dave
Always wear safety glasses while programming.
I am away from the shop but I think the feed back is telling you the card is not present.
I am sure you have, but double check the hardware.
Are you using a socket for the SD card or some other way. I was using a two row header at first myself and had the problem of getting a good connection at times. Make sur you have the pins aliased correctly, another mistake I have made.
Do you have a schematic or a good picture of the hardware?
Dave
Always wear safety glasses while programming.
Bookmarks