LPC2148 SD Card Driver

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

LPC2148 SD Card Driver

1,022 Views
sambha
Contributor I

Hi, I am trying to get SD Card working on my LPC2148 Board. 

I came across this link

https://www.nxp.com/docs/en/application-note/AN10406.pdf  (which is pretty old). I compiled it but I dont see any file creation or LED blinking  to indicate anything is hapenning. 

My SD Card is connected on the SPI1 interface. 

Is there an updated Driver ?

Thanks

Sam

0 Kudos
1 Reply

696 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Sam,

When using legacy SD card drivers, it is common that they will have some issues when trying to communicate with newer SD cards, like SDHC.

In this case, you could try using the driver as is with Standard Capacity cards (2GB or less), or applying some modifications to the driver to be able to communicate with High Capacity cards (4 to 32 GB), as the mentioned on the following link:

https://stackoverflow.com/questions/8080718/sdhc-microsd-card-and-spi-initialization

This is more common with SPI-based drivers rather than SD Host Controller drivers.

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos