LPC2119/LPC2129 SD Card problems

Hi,

I am trying to interface a 256MB Kingmax SD card through SPI. I am using an LPC2119, no JTAG, and the Embedded Filesystem Library Ver. 0.2.8 http://www.siwawi.arubi.uni-kl.de/avr_p … index.html

This library was intended for LPC23xx/24xx so I made the appropriate changes to the register header files and port configuration functions. My dev environment is Linux and my compiler is arm-gcc version 4.0.2.

I have followed the schematic for the Logomatic http://www.sparkfun.com/commerce/produc … cts_id=752 found at the end of the datasheet. I also added 50k resistors to everything except the clock, ground, and power. Even the no connects.

I have tried different cards from Sandisk and reading the status register, but found no errors.

Any help is appreciated.

You could try JC Wren’s demo

http://www.jcwren.com/arm/

For a port of ELM FAT FS to LPC2148.

You could also look at the source of

http://minion-system.sourceforge.net

in which SD card support is included

Dan

see my example code for some ARMs:

http://www.embedded-os.de/index.html?pcfat_port.htm