On Thu, Aug 09, 2007 at 04:15:36PM +0200, Rune S??rensen wrote:
> Dear all,
>
> I'm new to eCos (as well as this mailing list) so I hope my issue is
> pretty basic.
> I am trying to mount fatfs on a sdcard connected using spi, but the
> mount() call never returns. More specific, it seems that a mutex lock
> in mmc_spi_send_init() never becomes locked:
>
> spi.c :
>
> cyg_spi_transaction_begin(cyg_spi_device* device){
> .
> .
> while (!cyg_drv_mutex_lock(&(bus->spi_lock))); <------ Does not return
> .
> }
If you define DEBUG in
packages/devs/disk/generic/mmc/current/src/mmc_spi.c what do you see?
Does it find the MMC card? Does it read the partition table?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss