We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all,
I am using SD Memory interface in SPI mode with LPC1768 and using the keil Flash file system as Memory Card Driver0. The SD Memory used is 2GB SD1.0 complaint.
I have customised the SD_File code of MCB1700 for muy application.
File reading, writing,folder creation, everything is working fine. But some times it shows error as "Insert Memory Card" or "Memory card Unformetted".
I have checked the Detect switch and write protect switch signals they are working correctly.
when I debugged, the function finit is calling the function checkmedia. checkmedia is detecting the switch state as card inserted, but after that i am not able to debug what it is esnding to the card and what it is expecting from the card. Finally return from the finit is 1 or 2 duo to which it is displaying the above said errors.
I have checked the voltage levels of the SSP signals they are all working at level 1 is above 3 Volts. I am not understanding why this is behaving like this. It is working some times and not working some times.
Please suggest to resolve this problem.
regards Lingaraju
Also,
Repeated install/release from SD card holder of SD Card while debugging seems to cause corruption on the Card. Since the card is not properly unmounted this is not a big suprise but need further investigation to try to make more robust - if possible.
finit() and fflush() work fine - all that has been tested so far....