This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Mounting fatfs using mmc_spi on at91sam7sek
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Rune S??rensen <rals dot spam at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 9 Aug 2007 16:27:53 +0200
- Subject: Re: [ECOS] Mounting fatfs using mmc_spi on at91sam7sek
- References: <6b9e7ef20708090715y55f820a2mcfba7c3e58078c38@mail.gmail.com>
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