[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MMC card with spi-sd-card.c
- Date: Tue, 23 Dec 2008 09:15:34 +0100
- From: sebastian.huber at embedded-brains.de (Sebastian Huber)
- Subject: MMC card with spi-sd-card.c
Sebastian Huber wrote:
> Gene Smith wrote:
>> I have been trying to use an MMC with the "spi/sd" drivers in RTEMS. I
>> worked until it tries to send two commands in a loop waiting for idle
>> conditon in an init routine:
>>
>> rv = sd_card_send_command( e, SD_CARD_CMD_APP_CMD, 0);
>> CLEANUP_RVSC( rv, sc, sd_card_driver_init_cleanup, "Send:
>> SD_CARD_CMD_APP_CMD");
>> rv = sd_card_send_command( e, SD_CARD_ACMD_SD_SEND_OP_COND, 0);
>> CLEANUP_RVSC( rv, sc, sd_card_driver_init_cleanup, "Send:
>> SD_CARD_ACMD_SD_SEND_OP_COND");
>
> These commands set the SD Card into SPI mode.
[...]
Oh, I guess I misunderstood you. You want to use a MMC in SPI mode? There are
several ways to switch from MMC mode to SPI mode. This one worked for all
cards I worked with. We may use the alternatives if one approach fails.
--
Sebastian Huber, Embedded Brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request
Diese Nachricht ist keine gesch?ftliche Mitteilung im Sinne des EHUG.