[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Can't read Card Specific Data from SD Card (rtems-4.9.0) - RESOLVED
- Date: Fri, 10 Oct 2008 07:52:20 -0400
- From: rsg at alum.mit.edu (Robert S. Grimes)
- Subject: Can't read Card Specific Data from SD Card (rtems-4.9.0) - RESOLVED
Sebastian Huber wrote:
> Robert S. Grimes wrote:
>
>> Hi Thomas and Sebastian,
>>
>> Whew! This was a tough one!
>>
>> I finally figured it out. The culprit was sd_card_wait(), and its helper:
>>
>> static inline int sd_card_query( sd_card_driver_entry *e, uint8_t
>> *in, int n)
>> {
>> return rtems_libi2c_read_bytes( e->minor, in, n);
>> }
>>
>>
>
> Oh, sorry for that. I should have mentioned the idle_char changes.
As some say, would have, should have, could have - I probably should
have wondered what idle_char was all about sooner! Seriously, you
couldn't have known the state of my SPI driver, so don't blame
yourself! After all, you have still saved me much time compared with
writing it all myself!!!
> In the future the driver should support
>
> read_write( src = NULL, dest = NULL, size = n)
>
> To write n idle characters and discard the response.
>
> In the current CVS head is also an experimental asynchronous read/write
> interface for LibI2C (example driver is in libbsp/arm/lpc24xx/ssp/ssp.c).
>
Thanks for the head's up. At this point, I'm not sure I'll revisit the
head - I'm probably fixed on the 4.9.x branch for this project - but who
knows where the next project will lead...
Thanks,
-Bob
> [...]
>
>> Now for the next stages - getting the file system working - wish me luck!
>>
> [...]
>
> Good luck!
>
> --
> 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.
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
>