Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: MMC/SD support on LPC2000

2006-01-17 by Carsten Grøn

Thanks Dave,

I have looked at the filedisk program your mentioned, but I don't 
see (or more correctly, understand :-) how I can use that for 
accessing the individual sectors on the SD card ?
I'm also more after some "code snippets" that will allow me access 
to the SD cards sectors from within a C++ or C# application, 
basically what I would need, is just the "PC equivivalent" of the 
mmc_read_block() and mmc_write_block() in the Philips apps example 
code, that way my "PC log file displayer" application can just look 
at the SD card, and show the circular data (a large logfile) from 
the card...

Regards,
Carsten

> 
> If you are running Linux, you can always get direct access to
> the device via eg. /dev/sda1 nodes (assuming here you stuck
> the card in say a USB multi-card reader and it showed up as
> /dev/sda, with /dev/sda1 being the first partition on that
> device).
> 
> If you're on Windows, take a look at filedisk by Bo Brantén, its
> a utility for mounting devices much like the loopback device under
> Linux. I've used it with Cygwin for dd'ing floppy images into fake
> drives for booting vmware, and mounting iso's.
> 
> It should be low-level enough for you.
> 
> Here's a site with filedisk
> 
> http://www.insidewindows.info/
> 
> I'm not sure what Windows will do if you plug a device in that
> has no file system, it'll probably offer to format it for you.
> Helpful soul that it is ...
> 
> Dave
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.