Found a LPC2138 port of the Embedded Filesystems Library. Took this stuff and made this working on my LPC2148.
Now i can access an SD-Card attached to the LPC2148. Currently the FAT filesystem is supported.
The sample pgramm includes an minimal serial line shell which supports file reading and directoy listings.
MMC/SD Card Filesystem Test (P:LPC2148 L:EFSL)
CARD init...spiInit for SSP/SPI1
Card is initialising.
CSD: 00 26 00 32 5F 59 83 C8 BE FB CF FF 92 40 40 D7
Drive Size is 1015808000 Bytes (1984000 Sectors)
Init done...
Press Command: d r a
You pressed : d
Directory of 'root':
TEST01 ( 6 bytes )
TEST02 ( 6 bytes )
TEST03 ( 6 bytes )
TEST04 ( 6 bytes )
TEST05 ( 6 bytes )
TEST06 ( 6 bytes )
TEST09 ( 6 bytes )
TEST10 ( 6 bytes )
LOGDAT9 TXT ( 833 bytes )
DUMMY LOG ( 2754 bytes )
hi guru,you done a awesomw work ,while tested this code i got failed with -2 error after init done .
will u please describe the error ?