Hi,
I am using lpc2106 and SPI0 interface for kingston 2gb sd card.
I have the followowing error :
MMC/SD Card Filesystem Test (P:LPC2138 L:EFSL)(##)
efsl LPC2000-port and this Demo-Application
done by Martin Thomas, Kaiserslautern, Germany
CARD init...spiInit for SPI(0)
Unknown error 0x0 (see SanDisk docs p5-13).
Card failed to init, breaking up...
What is wrong with it ?
if I increase the number of retry to (1000 ~ 10000)
in the function
if_getDriveSize
res = sd_getDriveSize( iface, drive_size );
res becomes -1
here is the screen
MMC/SD Card Filesystem Test (P:LPC2138 L:EFSL)(##)
efsl LPC2000-port and this Demo-Application
done by Martin Thomas, Kaiserslautern, Germany
CARD init...spiInit for SPI(0)
Card identified as SD-Card
numsec 1073800832 sizesec 88
Drive Size is 4 Bytes (4294967295 Sectors)
Init done...
failed with -2
is that something related to command timing ?
Re: EFSL MMC SD sorce code
Started by ●August 26, 2008
Reply by ●August 26, 20082008-08-26
> -----Original Message-----
> From: l...
> [mailto:l...]On Behalf
> Of u...@gmail.com
> Sent: Tuesday, August 26, 2008 4:45 PM
> To: l...
> Subject: [lpc2000] Re: EFSL MMC SD sorce code
> Hi,
>
> I am using lpc2106 and SPI0 interface for kingston 2gb sd card.
>
> I have the followowing error :
>
> MMC/SD Card Filesystem Test (P:LPC2138 L:EFSL)(##)
> efsl LPC2000-port and this Demo-Application
> done by Martin Thomas, Kaiserslautern, Germany
> CARD init...spiInit for SPI(0)
> Unknown error 0x0 (see SanDisk docs p5-13).
> Card failed to init, breaking up...
>
> What is wrong with it ?
>
> if I increase the number of retry to (1000 ~ 10000)
>
> in the function
> if_getDriveSize
> res = sd_getDriveSize( iface, drive_size );
> res becomes -1
>
> here is the screen
>
> MMC/SD Card Filesystem Test (P:LPC2138 L:EFSL)(##)
> efsl LPC2000-port and this Demo-Application
> done by Martin Thomas, Kaiserslautern, Germany
> CARD init...spiInit for SPI(0)
> Card identified as SD-Card
> numsec 1073800832 sizesec 88
> Drive Size is 4 Bytes (4294967295 Sectors)
> Init done...
> failed with -2
>
> is that something related to command timing ?
>
What version of EFSL are you using?
How have you connected the SD card to the LPC2138? Is
this prototyped wiring, or is it on a PCB? What is the
trace length?
You may have to take a closer look at the functions to
determine why it is returning the values it is. Usually
this error indicates some sort of hardware communication
problem.
Mike
> From: l...
> [mailto:l...]On Behalf
> Of u...@gmail.com
> Sent: Tuesday, August 26, 2008 4:45 PM
> To: l...
> Subject: [lpc2000] Re: EFSL MMC SD sorce code
> Hi,
>
> I am using lpc2106 and SPI0 interface for kingston 2gb sd card.
>
> I have the followowing error :
>
> MMC/SD Card Filesystem Test (P:LPC2138 L:EFSL)(##)
> efsl LPC2000-port and this Demo-Application
> done by Martin Thomas, Kaiserslautern, Germany
> CARD init...spiInit for SPI(0)
> Unknown error 0x0 (see SanDisk docs p5-13).
> Card failed to init, breaking up...
>
> What is wrong with it ?
>
> if I increase the number of retry to (1000 ~ 10000)
>
> in the function
> if_getDriveSize
> res = sd_getDriveSize( iface, drive_size );
> res becomes -1
>
> here is the screen
>
> MMC/SD Card Filesystem Test (P:LPC2138 L:EFSL)(##)
> efsl LPC2000-port and this Demo-Application
> done by Martin Thomas, Kaiserslautern, Germany
> CARD init...spiInit for SPI(0)
> Card identified as SD-Card
> numsec 1073800832 sizesec 88
> Drive Size is 4 Bytes (4294967295 Sectors)
> Init done...
> failed with -2
>
> is that something related to command timing ?
>
What version of EFSL are you using?
How have you connected the SD card to the LPC2138? Is
this prototyped wiring, or is it on a PCB? What is the
trace length?
You may have to take a closer look at the functions to
determine why it is returning the values it is. Usually
this error indicates some sort of hardware communication
problem.
Mike