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
> My problem is the demo always gets stuck when initializing the disk,
> that is, in the function MCI_CardInit(). The output debug information
> 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