MCB2300 SD card problem

OP #1174646
Hi all,

I have been trying the demo "ChaN's FAT-Module and LPC23xx/24xx MCI" on
my MCB2300 board (with LPC2388 controller), using a Sandisk 512 MB SD
card:
http://gandalf.arubi.uni-kl.de/avr_projects/arm_projects/efsl_arm/index.html

My problem is the demo always gets stuck when initializing the disk,
that is, in the function MCI_CardInit(). The output debug information
is:

MCI_INIT ok
timeout CMD8-> SD-Card<Version 2.0 or MMC
MCI_Send_ACMD failed-> MMC, invalid power-range or no card
unknown card
....

I have tried some solutions proposed in this and another forums, like
disabling the MAM and/or reducing the clock speed. However the problem
is the same every time.

The demo is tested with a LPC2368 controller. Is there some important
change that I should take into account between the LPC2368 and the
LPC2388? I have not found it in the user's guide, but maybe I just
missed it.

If anyone has some kind of experience with this demo, any help would be
really appreciated.

Thanks in advance!

PD: I will try a different SD card too, even though the one I have works
fine under Windows...
Moderator
Baltasar Reig wrote:
> Hi all,
>
> I have been trying the demo "ChaN's FAT-Module and LPC23xx/24xx MCI" on
> my MCB2300 board (with LPC2388 controller), using a Sandisk 512 MB SD
> card:
> http://gandalf.arubi.uni-kl.de/avr_projects/arm_projects/efsl_arm/index.html
>
> My problem is the demo always gets stuck when initializing the disk,
> that is, in the function MCI_CardInit(). The output debug information
> is:
>
> MCI_INIT ok
> timeout CMD8-> SD-Card<Version 2.0 or MMC
> MCI_Send_ACMD failed-> MMC, invalid power-range or no card
> unknown card
> ....
>
> I have tried some solutions proposed in this and another forums, like
> disabling the MAM and/or reducing the clock speed. However the problem
> is the same every time.
>
> The demo is tested with a LPC2368 controller. Is there some important
> change that I should take into account between the LPC2368 and the
> LPC2388? I have not found it in the user's guide, but maybe I just
> missed it.
>
> If anyone has some kind of experience with this demo, any help would be
> really appreciated.
>
> Thanks in advance!
>
> PD: I will try a different SD card too, even though the one I have works
> fine under Windows...

The example-project from my page is rather experimental. It's basically
a combination of NXP's MCI-driver and ChaN's fat-code. ChaN's new
example-package now includes a LPC MCI driver too so give it a try. You
may also try the MCI example from NXP's example-package for LPC23xx/24xx
first to verify that the hardware works correctly. The NXP-code is
prepared for RealView but the Keil MDK-ARM evaluation-version should do
for tests.
(Company: SKF)
I had the same situation described by Baltasar Reig except I'm using a 
Kiel MCB2387 (Version 4.0) development card.

The solution was to change the definition of "MCB2300_VERSION_0" mci.h 
from zero to one as shown:
1
/* For the earliest MCB2300 board, set below bit to 1, for the newer
2
one, set it to zero. */
3
#define MCB2300_VERSION_0  1

(Thank you to Martin Thomas for the excellent example software).

Reply

A question of your own? This thread is over 17 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.