SD card interfacing with lpc2148

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

SD card interfacing with lpc2148

4,924 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ankush on Sat Dec 20 05:12:16 MST 2014
Hello Friends,

Please help me in SD card programming with lpc2148(ARM7).
I'm able to detect the SD card but unable to read and write to SD card.
i have attached my code's .zip file please see o/p on UART0.

Please tell me how to modify code or how to read SD card file which i've store as log.txt.

Reply friends

Original Attachment has been moved to: SD_CARD.zip

Labels (1)
0 Kudos
3 Replies

1,184 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sonu_ on Sat Feb 27 01:33:02 MST 2016
hi
 
i want to interface sd card with lpc2468 please help me . how to i start it. send me code for it on prajapatsonu8@gmail.com
0 Kudos

1,184 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ankush on Fri Dec 26 02:42:14 MST 2014
Hello sir,

it is something self written.
but it is not correct.
can you observe what i have to do in that program to read  log.txt file in SD card i have placed?
or if you have sample code or efsl library and tell me how to use it.
i have downloaded code from chan website but it is missing with header file and shows error.
if you have any code kindly attach..
help me sir
0 Kudos

1,184 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Sat Dec 20 05:59:25 MST 2014
Hello,

which file system source code are you using? Elm Chan's? EFSL? Something self written?

There is

file_fopen(&File,,"LOG.txt",MODE_READ);

which I can't find (or perhaps have overseen) in your sources and which seems to have no second parameter. Is this correct?

Finally to debug and get it running, you must trace (and then understand) the communication between LPC2148 and SD card.
You can do this e.g. by a hardware SPI analyzer or by sending the SPI communication to a debug port,
so you can see what the LPC2148 is sending over SPI and what is coming back from SD card.

Best regards,

Martin


0 Kudos