sd card not working properly

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sd card not working properly

1,020 Views
sonuprajapat
Contributor II

hi i am working on sd card using spi in lpc2468 it is working fine . but when i do the power off  the card then card init correct but not read write . i can not understand the problem please help me . my code is...

Original Attachment has been moved to: SPI.C.zip

Original Attachment has been moved to: Spi_mmc.h.zip

Original Attachment has been moved to: MMC.C.zip

4 Replies

817 Views
sonuprajapat
Contributor II

hi some help me on above question i am not understanding this problem please....

0 Kudos
Reply

817 Views
sonuprajapat
Contributor II

please give me replay....

0 Kudos
Reply

817 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Sonu,

If the code is working without the power cycle, it seems that it is a timing or power issue. You could try checking your power supply in order to discard some peaks that cause abnormal SD card operation, or trying adding a delay before the SD card initialization, in order to ensure that the card is already self-initialized for a correct communication.


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

817 Views
sonuprajapat
Contributor II

Hi Carlos

Thank you for your replay .

As you say  it may be . problem is that normally card is working fine but when i do the power off and then on of the system respectively then card initialization is fine but read write operation is not working . But when i do reset of whole system then it is working fine again.

thank you .  

0 Kudos
Reply