Hello Ben,Benj wrote:Hi Rocket,
Hmm is the sect bytes error returning on all the cards your trying or are you only testing a single card? What about if you format the card using different cluster sizes. Finally was the card working previously?
Very odd as my PIC version is working for all cards and we have ported the code to dsPIC and this is also working very nicely
Here are the cards I have tested:
SanDisk 128MB
Pretec 2GB
SanDisk 4GB
For each one, I have tried FAT and FAT32. Yes, I did change the FAT component mode to the appropriate format (FAT or FAT32). Every card and format returns a sector bytes error. I am not able to change the cluster sizes because the only available size is "Default Allocation Size". The SanDisk 128MB SD and the Pretec 2GB SD has worked with the FCV4 FAT component flawlessly. I never tested the SanDisk 4GB with FCV4 because it was SDHC. If we can't figure this out, I think I will purchase a logic analyzer so I can really see what is going on.
Thanks again,
Henry