Searching \ for '[PIC] Interfacing a PIC to a microSD or TransFlash' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/memory.htm?key=flash
Search entire site for: 'Interfacing a PIC to a microSD or TransFlash'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Interfacing a PIC to a microSD or TransFlash'
2006\11\06@143121 by James Newton, Host

face picon face
I've been doing some work for a guy who makes data loggers and we are
looking at a new memory card for the loggers. I found these microSD cards
and I have to say I'm really impressed:

- 512MB for $18, 1GB for $30. 2GB for $90. Cost is low because they have
been made in extreme volumes.
- Unlikely to go away since they are used in most cell phones as the "sim"
card or more: the new Chocolate phone uses a 2GB version for internal music
storage.
- About the size of your thumbnail.
- Plugs into a standard SD slot with a mechanical adapter.
- Same SPI serial or nibble parallel interface as SD cards.
- Easy USB interface via "expandable" memory sticks.
- High reliability connectors that hold the entire card down at reasonable
prices.

Just seems ideal for large memory applications in the embedded world.

I'm wondering why I don't find more mentions of them on the net. There don't
appear to be any hobby projects (or maybe I used the wrong keywords). What I
have found so far is here:
http://www.piclist.com/techref/mem/flash/microSD.htm

Has anyone used them?

---
James Newton: PICList webmaster/Admin
spam_OUTjamesnewtonTakeThisOuTspampiclist.com  1-619-652-0593 phone
http://www.piclist.com/member/JMN-EFP-786
PIC/PICList FAQ: http://www.piclist.com


2006\11\06@163134 by Timothy Weber

face picon face
James Newton, Host wrote:
> I've been doing some work for a guy who makes data loggers and we are
> looking at a new memory card for the loggers. I found these microSD cards
> and I have to say I'm really impressed:
..
> Has anyone used them?

I've only used the SD flavor in my Treo and in a USB adapter to backup
and move files.  I love 'em.  Is there a particular advantage in using
microSD over SD?

Depending on your requirements, the smaller size might be a
disadvantage...  Even with the larger SD size, I've occasionally dropped
one on the floor among cables and had to hunt for it for a while!  Gave
new meaning to "I dropped my disk on the floor and lost data"...

Are they cheaper, or is size at that much of a premium?
--
Timothy J. Weber
http://timothyweber.org

2006\11\06@163642 by David VanHorn

picon face
>
>
> Has anyone used them?


I haven't personally, but I know there are AVR projects that do.
www.avrfreaks.net/index.php?module=Freaks%20Tools&func=viewItem&item_id=516&item_type=tool

2006\11\06@164107 by peter green

flavicon
face


{Quote hidden}

microchip has example code for talking to standard SD/MMC cards, presumablly it would work with theese as well.




2006\11\06@165513 by M. Adam Davis
face picon face
A number of people I've talked to (not computer or electronic
enthusiasts) have said that the microSD (used to the called
Transflash) was simply too small.  They couldn't imagine using it to
carry important data.  I had a phone with MicroSD, and I rarely took
it out - it's pretty fiddly to remove and insert, even with the nice
push-push connectors that one can get cheaply now.

I have a phone now that uses the MiniSD, which is about the smallest
size people I've talked to think they'd like to take in and out on a
regular basis.  I carry a MiniSD thumb drive so I can easily access
content on the phone, and do so on a regular basis.  It beats carrying
around a miniUSB cable and dangling the whole phone off that, and is
significantly faster.  My laptop has a built in SD socket, which I
store my MiniSD to SD adaptor, though I tend to use the thumb drive
anyway.

I doubt I'd recommend or use MicroSD except where space was a major
concern/feature, and accessability/ease of use was not.  For instance,
many phones and devices use it merely to upgrade the internal memory -
it's never intended to be used as removable memory.  That's a fine
application.

If I ever got around to making a "daycorder" all-day audio recording
device, then I'd go with MicroSD simply because the device would have
to be the size of a large button pinned on my shirt.  I would also
make it so I wouldn't need to remove the card - a USB connection would
probably work here.  If I expected to remove the card daily, I'd
instead use a MiniSD or SD.  I think the MiniSD is about the perfect
size for regular handling, and the SD for heavy handling.  Most of the
people I talk to would rather have the larger card.

http://www.sparkfun.com carries both the memory cards and the sockets
(as well as break out boards for the sockets) for anyone interested in
using one.

-Adam

On 11/6/06, James Newton, Host <.....jamesnewtonKILLspamspam.....piclist.com> wrote:
> I've been doing some work for a guy who makes data loggers and we are
> looking at a new memory card for the loggers. I found these microSD cards
> and I have to say I'm really impressed:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
Moving in southeast Michigan? Buy my house: http://ubasics.com/house/

Interested in electronics? Check out the projects at http://ubasics.com

Building your own house? Check out http://ubasics.com/home/

2006\11\06@170256 by Aaron

picon face


James Newton, Host wrote:

{Quote hidden}

Wasn't there a Circuit Cellar article few months ago discussing these
"sim" cards?

Aaron

2006\11\06@170613 by James Newton, Host

face picon face
> Are they cheaper, or is size at that much of a premium?

Mostly the size is what makes it perfect for data loggers, but also the cost
is amazingly low and they could possibly be scavenged from old cell phones.

---
James.


2006\11\06@172215 by Mat

flavicon
face
I'm also working on another datalogger project, hadn't considered the
microSD, just normal SD cards, whats the power consumption level like
between the two.

Mat

-----Original Message-----
From: James Newton, Host [EraseMEjamesnewtonspam_OUTspamTakeThisOuTpiclist.com]
Sent: 06 November 2006 22:06
To: 'Microcontroller discussion list - Public.'
Subject: RE: [PIC] Interfacing a PIC to a microSD or TransFlash card

> Are they cheaper, or is size at that much of a premium?

Mostly the size is what makes it perfect for data loggers, but also the cost
is amazingly low and they could possibly be scavenged from old cell phones.

---
James.


2006\11\06@174748 by James Newton, Host

face picon face
> I'm also working on another datalogger project, hadn't
> considered the microSD, just normal SD cards, whats the power
> consumption level like between the two.

Darn fine question. I don't know yet. If they run in cell phones, it can't
be too much...

---
James.


2006\11\06@183858 by Mike Harrison

flavicon
face
On Mon, 6 Nov 2006 22:22:05 -0000, you wrote:

>I'm also working on another datalogger project, hadn't considered the
>microSD, just normal SD cards, whats the power consumption level like
>between the two.
>
>Mat
>
>{Original Message removed}

2006\11\06@185659 by William Chops Westfield

face picon face
On Nov 6, 2006, at 11:30 AM, James Newton, Host wrote:
>
> I'm wondering why I don't find more mentions of them on the net. There
> don't appear to be any hobby projects (or maybe I used the wrong
> keywords). What I have found so far is here:
>
> http://www.piclist.com/techref/mem/flash/microSD.htm
>
> Has anyone used them?
>
I've been adding miniSD cards to ARM-based media players recently:
http://www.elinux.org/wiki/JuiceBoxMMCHack

There's a problem with SD cards in general in that they're heavily
licensed, and in theory you can't get specs, or use them, or buy
sockets for them, without paying $$$$ in SD-assoc membership fees.
(people get around this by using them in MMC/SPI mode, but there's
some question as to whether SD cards in general, and especially the
newer packages, always support that.)  (Sparkfun apparently sells
microSD sockets.  And someone pointed out that if you're careful you
can use the "adaptors" that usually come with the microSD cards as
sockets...)

MicroSD and miniSD are still somewhat more expensive than full-sized
SD, and IMHO, the "sweet point" for cheap microSD cards is almost
too large for typical embedded use.  Gimme those $4 32M (full sized)
MMC cards instead...

BillW

2006\11\06@190503 by Zik Saleeba

face picon face
There are a number of different "small SD" formats - mini-SD, micro-SD
and RS-MMC. RS-MMC is the one I've been using - it has a similar
physical connector to SD but is shorter. The others have incompatible
connectors but with the same signals AFAIK.

Wikipedia has some useful info:
http://en.wikipedia.org/wiki/Secure_Digital_card

Cheers,
Zik

On 11/7/06, Mike Harrison <mikespamspam_OUTwhitewing.co.uk> wrote:
> On Mon, 6 Nov 2006 22:22:05 -0000, you wrote:
>
> >I'm also working on another datalogger project, hadn't considered the
> >microSD, just normal SD cards, whats the power consumption level like
> >between the two.
> >
> >Mat
> >
> >{Original Message removed}

2006\11\06@193626 by Harold Hallikainen

face
flavicon
face


> I think MicroSD is electrically the same as SD - Sparkfun do some
> connectors, breakout PCBs etc.
> www.sparkfun.com/commerce/product_info.php?products_id=8163
> The spec on that page mentions a passive SD to microSD adapter, which
> would imply it's just a pinout
> converter (like PCMCIA to CF, ISTR)
>

My wife's cellphone uses a uSD. All the uSD cards in Staples come with an
adapter to SD. So, it seems like they're electrically the same, perhaps
just a difference in packaging. The uSD is really quite small. I wouldn't
want to drop one. I'd never find it again.

Harold



--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!

2006\11\06@194349 by James Newton, Host

face picon face
BillW said:
> I've been adding miniSD cards to ARM-based media players recently:
> http://www.elinux.org/wiki/JuiceBoxMMCHack

Cool!

> There's a problem with SD cards in general in that they're
> heavily licensed, and in theory you can't get specs, or use
> them, or buy sockets for them, without paying $$$$ in
> SD-assoc membership fees.

Huh? My understanding was that the card /makers/ had to pay the fees not the
card /users/. Are they seriously saying that if you make a device that uses
their product (and therefore sells more of their product) that you have to
pay them a fee? The sockets are available from a number of sources. The
piclist.com page references some from mouser and jameco.

> (people get around this by using them in MMC/SPI mode, but
> there's some question as to whether SD cards in general, and
> especially the newer packages, always support that.)  

Huh? Where did you hear that doubt expressed? Everything I have read says
that the serial modes are required...

> (Sparkfun apparently sells microSD sockets.  And someone
> pointed out that if you're careful you can use the "adaptors"
> that usually come with the microSD cards as
> sockets...)

With sockets at a few dollars there is no need, but if you get the adapters
for free, it's a cool hack.

> MicroSD and miniSD are still somewhat more expensive than
> full-sized SD, and IMHO, the "sweet point" for cheap microSD
> cards is almost too large for typical embedded use.  Gimme
> those $4 32M (full sized) MMC cards instead...

Good point. This is probably my main concern: In 5 years, will you be able
to purchase a 1GB microSD card or will they all be 20GB or more?

On the other hand, I wonder if you will be able to purchase any size MMC
card. They don't seem to have that large an install base...

---
James.


2006\11\06@203132 by M. Adam Davis

face picon face
The "fast" four bit access mode is protected under various licensed patents.

All memory SD cards, including micro, mini, etc are supposed to
support the serial method for MMC if they use the SD trademark symbol.
I don't know about SDIO standards (whether it uses serial, 4 bit, or
both.  I imagine they are register mapped devices and are largely
treated like memory)

But the synchronous serial mode is plenty fast for uC applications, so
there's no need to license anything.  The only other thing the license
covers is the largely unused "secure" part of the SD (Secure Device)
spec.

-Adam

On 11/6/06, James Newton, Host <@spam@jamesnewtonKILLspamspampiclist.com> wrote:
{Quote hidden}

> -

2006\11\06@205025 by Tony Smith

picon face
{Quote hidden}

Haven't MMC cards stopped at 512k?  You still get small (16k or so) one with
new cameras.  SD are up to 8 gig, IIRC.

Tony

2006\11\06@211248 by Marcel Birthelmer

picon face
I have some 32MBs on my desk. I'm pretty sure they're MMC and not SD.

On 11/6/06, Tony Smith <KILLspamajsmithKILLspamspamrivernet.com.au> wrote:
{Quote hidden}

> -

2006\11\06@211327 by John Temples

flavicon
face
On Tue, 7 Nov 2006, Tony Smith wrote:

> Haven't MMC cards stopped at 512k?

Transcend makes MMCs up to 2GB.

> SD are up to 8 gig, IIRC.

Anything over 4GB is SDHC (as are some 4GB cards), which is not
protcol-compatible with SD (MMC and SD use 32-bit addrressing, so can
only address 4GB).  I don't know if SDHC includes SPI support.

--
John W. Temples, III

2006\11\06@215024 by Howard Winter

face
flavicon
picon face
James,

On Mon, 6 Nov 2006 11:30:39 -0800, James Newton, Host wrote:

> I've been doing some work for a guy who makes data loggers and we are
> looking at a new memory card for the loggers. I found these microSD cards
> and I have to say I'm really impressed:
>
> - 512MB for $18, 1GB for $30. 2GB for $90. Cost is low because they have
> been made in extreme volumes.
> - Unlikely to go away since they are used in most cell phones as the "sim"
> card or more: the new Chocolate phone uses a 2GB version for internal music
> storage.

That's not quite right - SIM cards use the "Smartcard" format, a piece of credit-card-like plastic card with the gold contact pads arranged in two
rows around a central long connection, like this:  http://www.brightmobile.com/images/sim%20virgin.jpg  (it's made in a credit-card size, then the part
around the chip/contact is broken out to insert into the phone).  SD and its smaller brothers are used for storage of other things - my current phone
has a SIM as I described, and an SD slot that it used as a "disk", for storing software, music, photos, video, and basically any data files you want.  The
only data on the SIM is the phone/account identity information and a small "contacts" list - probably no more than about 32kB, and maybe much less.  
The SD card can be 1GB or more.

> - About the size of your thumbnail.
> - Plugs into a standard SD slot with a mechanical adapter.
> - Same SPI serial or nibble parallel interface as SD cards.
> - Easy USB interface via "expandable" memory sticks.
> - High reliability connectors that hold the entire card down at reasonable
> prices.
>
> Just seems ideal for large memory applications in the embedded world.

It's been said (and I can't remember where I saw it) that microSD cards aren't designed for regular insertion/removal the way SD, Compact Flash and
so on are, because of their size and other aspects, but are really intended to be inserted (into the phone, MP3 player, or whatever) and left there
most of the time.  With my phone I often take the SD card out to transfer stuff to and from a PC (easier than finding the cable! :-) but with microSD
that's a Bad Thing!  If you don't need that tiny form-factor, it's probably best to go with full-size SD.  (Good grief, I'm saying "Full size" - we're
talking about something you could hide under your watch! :-)

Cheers,


Howard Winter
St.Albans, England


2006\11\06@230041 by Tony Smith

picon face
> On Tue, 7 Nov 2006, Tony Smith wrote:
>
> > Haven't MMC cards stopped at 512k?
>
> Transcend makes MMCs up to 2GB.
>
> > SD are up to 8 gig, IIRC.
>
> Anything over 4GB is SDHC (as are some 4GB cards), which is
> not protcol-compatible with SD (MMC and SD use 32-bit
> addrressing, so can only address 4GB).  I don't know if SDHC
> includes SPI support.


Oops, I meant 512MB.  Anyway, 2GB is rather large, you don't see MMC being
sold that much these days.

So what do you format a > 4GB card as these days?  That's the limit of
FAT32, so NTFS?

Tony  

2006\11\06@231325 by William Chops Westfield

face picon face

On Nov 6, 2006, at 4:43 PM, James Newton, Host wrote:

> My understanding was that the card /makers/ had to pay the fees not
> the card /users/. Are they seriously saying that if you make a
> device that uses their product (and therefore sells more of
> their product) that you have to pay them a fee?
>
Yes.  This came up when we were looking for a flash card format
smaller than CF.  You have to be a member ($2000/year) before you
can get the full specification.  And then $1000/year for a host
license.  Plus royalties, I think (maybe not for just hosts.)

http://en.wikipedia.org/wiki/SD_memory has a summary, although I
can't comment as to its accuracy.  More at
http://www.sdcard.org/licensing/hala.html, although exact terms
and requirements seem pretty well obscured...

You may want to check socket availability

> Huh? Where did you hear that doubt expressed? Everything I have read
> says
> that the serial modes are required...

The previously mentioned ARM project has had trouble reading "some"
SD cards smaller than 2G, and is reported not to work with any cards
larger than 2G (it uses SPI mode exclusively, I believe.)  "serial" mode
is not entirely the same as SPI mode (apparently.)  According to the
wiki
page, SPI mode is "options" on microSD.  YMMV.  Some of this may be mere
driver bugs.

> I wonder if you will be able to purchase any size MMC
> card. They don't seem to have that large an install base...

True.  I can't tell how many "SD" capable products will also talk to
MMC (I've got some RSMMC cards on order; perhaps I'll do experiments
in the half-dozen or so SD/MMC hosts I have.)

At the rate things are going, MMC may survive simply based on being
one of the few small flash formats without licensing requirements.

BillW

2006\11\06@234526 by William Chops Westfield

face picon face
On Nov 6, 2006, at 5:49 PM, Tony Smith wrote:

> Haven't MMC cards stopped at 512k?

No, you can get MMC up to 2G, after which I believe the format
falls apart (not enough bits in addresses, or somesuch.)

http://www.flash-memory-store.com/2gb-multimedia.html

It's rather more expensive than SD, not being as popular.
There's also MMCmicro to compete with microSD.

BillW

2006\11\07@002809 by John Temples

flavicon
face
On Mon, 6 Nov 2006, William Chops Westfield wrote:

> The previously mentioned ARM project has had trouble reading "some"
> SD cards smaller than 2G, and is reported not to work with any cards
> larger than 2G (it uses SPI mode exclusively, I believe.)  "serial" mode
> is not entirely the same as SPI mode (apparently.)  According to the
> wiki
> page, SPI mode is "options" on microSD.  YMMV.  Some of this may be mere
> driver bugs.

I would suspect driver bugs.  The SPI protocol supports 32-bit
addressing, so there's no limitation there, but of course if the
memory address is declared as an "int" somewhere instead of an
"unsigned int", you'll hit a 2GB wall.  And of course, a 4GB card
requires FAT32, while a 2GB doesn't.

--
John W. Temples, III

2006\11\07@003253 by John Temples

flavicon
face
On Tue, 7 Nov 2006, Tony Smith wrote:

> So what do you format a > 4GB card as these days?  That's the limit of
> FAT32, so NTFS?

FAT32 goes up to 32GB in actual implementations, though it's
theoretically capable of 2TB.

--
John W. Temples, III

2006\11\07@004213 by Bob Axtell

face picon face
James Newton, Host wrote:
{Quote hidden}

No, that was a few years ago, and revolved around Sony's Memory stick
products. The SD cards
info is available everywhere free.

{Quote hidden}

The MMC card is just an SD card with an unlock feature missing, which
also drops a pin.

--Bob
> ---
> James.
>  
>
>  

2006\11\07@004456 by John Temples

flavicon
face
On Mon, 6 Nov 2006, William Chops Westfield wrote:

> On Nov 6, 2006, at 5:49 PM, Tony Smith wrote:
>
>> Haven't MMC cards stopped at 512k?
>
> No, you can get MMC up to 2G, after which I believe the format
> falls apart (not enough bits in addresses, or somesuch.)

There is no inherent 2GB limitation in MMC.  The latest MMCs sport a
fast 8-bit interface and sizes up to 4GB, while still being backwards
compatible with older MMC controllers and SPI mode.  What falls apart
at 2GB is FAT16.

--
John W. Temples, III

2006\11\07@011222 by John Temples

flavicon
face
On Mon, 6 Nov 2006, Bob Axtell wrote:

> The MMC card is just an SD card with an unlock feature missing, which
> also drops a pin.

The SD card has two extra pins, and supports a wider bus and higher
bus speeds, unless you're talking about MMC 4.0, which has a wider bus
than SD.  MMC is also mechanically thicker, so an SD card cannot be
inserted into an MMC slot.

--
John W. Temples, III

2006\11\07@011235 by William Chops Westfield

face picon face

On Nov 6, 2006, at 9:42 PM, Bob Axtell wrote:

> The SD cards info is available everywhere free.
>
Um, where?  Are you sure you're not confusing MMC with SD?
The sdcard.org site is pretty skimpy on data beyond the bare
minimum, and pretty clear on wanting their $...

The SD card has a 4-bit transfer mode and some DRM features
not present on MMC as well, though I think those are rarely
used (they're designed for selling content on SD cards, a market
that hasn't much taken off...)

BillW

2006\11\07@011808 by Robert Rolf

picon face

William Chops Westfield wrote:

> On Nov 6, 2006, at 9:42 PM, Bob Axtell wrote:
>>The SD cards info is available everywhere free.
>>
>
> Um, where?

www.sandisk.com/Assets/File/OEM/Manuals/SD_SDIO_specsv1.pdf
and other big makers sites.


R

2006\11\07@021039 by Tony Smith

picon face
> > So what do you format a > 4GB card as these days?  That's
> the limit of
> > FAT32, so NTFS?
>
> FAT32 goes up to 32GB in actual implementations, though it's
> theoretically capable of 2TB.


I'm too lazy to dig out the spec, but I assume that's by fiddling with the
sector size?  I wonder how many things assume a sector is 512 bytes...

Tony

2006\11\07@022801 by William Chops Westfield

face picon face
>>> The SD cards info is available everywhere free.
>> Um, where?
> www.sandisk.com/Assets/File/OEM/Manuals/SD_SDIO_specsv1.pdf
> and other big makers sites.
>
That's the SDIO extension spec, not the info on the SD memory
itself.  I can find the "physical layer" spec, and I can find the
SDIO extensions, but not the basic memory card info...  (or maybe
the physical layer spec is pretty much IT.)

> FAT32 goes up to 32GB in actual implementations, though it's
> theoretically capable of 2TB.

I think I had FAT32 disks under W98 that were larger than 32GB...
It wasn't till XP came along that windows insisted on NTFS for
large disks...

> MMC is also mechanically thicker, so an SD card cannot be
> inserted into an MMC slot.

Um, which is thicker?  The physical layer spec says that there are
thick (2.1mm) and thin (1.4mm) SD cards, but I don't think I've ever
SEEN a thick one.  2.1mm is almost 0.1 inch, a distance us chip-monkeys
are pretty familiar with!

BillW

2006\11\07@024332 by John Temples

flavicon
face
On Mon, 6 Nov 2006, William Chops Westfield wrote:

>> MMC is also mechanically thicker, so an SD card cannot be
>> inserted into an MMC slot.
>
> Um, which is thicker?  The physical layer spec says that there are
> thick (2.1mm) and thin (1.4mm) SD cards, but I don't think I've ever
> SEEN a thick one.  2.1mm is almost 0.1 inch, a distance us chip-monkeys
> are pretty familiar with!

I got that backwards.  SD is thicker so that it can't go into an MMC
slot, but an MMC can go into an SD slot.

--
John W. Temples, III

2006\11\07@041707 by Alan B. Pearce

face picon face
>If you don't need that tiny form-factor, it's probably best to go
>with full-size SD.  (Good grief, I'm saying "Full size" - we're
>talking about something you could hide under your watch! :-)

I know - I keep looking at USB memory sticks in the larger capacities and
thinking in terms of walking into a 1960's IBM data centre and saying "here,
plug this in and download your entire disk store please ..."

2006\11\07@054632 by Howard Winter

face
flavicon
picon face
Tony,

On Tue, 7 Nov 2006 15:00:24 +1100, Tony Smith wrote:

>...
> So what do you format a > 4GB card as these days?  That's the limit of
> FAT32, so NTFS?

4GB is the file size limit for FAT32 - the partition size can be much bigger (I have a 300GB drive formatted as one FAT32 partition - I would have used
NTFS but it's connected to a SAMBA server which for some reason will only handle NTFS as Read-Only).

Cheers,


Howard Winter
St.Albans, England


2006\11\07@112049 by Herbert Graf

flavicon
face
On Mon, 2006-11-06 at 23:27 -0800, William Chops Westfield wrote:
> >>> The SD cards info is available everywhere free.
> >> Um, where?
> > www.sandisk.com/Assets/File/OEM/Manuals/SD_SDIO_specsv1.pdf
> > and other big makers sites.
> >
> That's the SDIO extension spec, not the info on the SD memory
> itself.  I can find the "physical layer" spec, and I can find the
> SDIO extensions, but not the basic memory card info...  (or maybe
> the physical layer spec is pretty much IT.)
>
> > FAT32 goes up to 32GB in actual implementations, though it's
> > theoretically capable of 2TB.
>
> I think I had FAT32 disks under W98 that were larger than 32GB...
> It wasn't till XP came along that windows insisted on NTFS for
> large disks...

It's Microsoft that's the problem on this end. Win2k/XP will not allow
you to create a FAT32 partition bigger then 32GB. There is NO technical
reason for this, it's simply MS shoving NTFS down our throats. The
interesting bit is if you create a FAT32 partition bigger then 32GB with
another tool, both 2K and XP will have ZERO problem using it!

Ahh, the beauty of alternate OS's...

TTYL

2006\11\07@133512 by peter green

flavicon
face

> So what do you format a > 4GB card as these days?  That's the limit of
> FAT32
no its not, fat32 supports up to 2TB (though the formatter in 2K/XP is crippled and will only format fat32 partitions up to 32GB)


2006\11\07@133629 by peter green

flavicon
face

> FAT32 goes up to 32GB in actual implementations
i have a 160 gig fat32 hard drive in an external caddy running just fine with XP, i just had to format it using a win98 box.


2006\11\07@140324 by Harold Hallikainen

face
flavicon
face

>
>> FAT32 goes up to 32GB in actual implementations
> i have a 160 gig fat32 hard drive in an external caddy running just fine
> with XP, i just had to format it using a win98 box.
>

Is the "limitation" how many sectors are allowed per cluster? Microsoft's
FAT Overview says BPB_SecPerClus is one byte. Supposedly, for FAT16 (which
is what I'm most familiar with), this could allow 255 sectors per cluster
times 512 bytes per sector times about 65,535 clusters or 8.55e9 bytes per
disk. This would be a cluster size of 262,144 bytes. The Microsoft
document also says the cluster size must be a power of 2, so the maximum
would then be 128, or 65536 bytes per cluster. It ALSO goes on to say you
cannot have a cluster size greater than 32kBytes. So, using a 512 byte
sector, it appears the maximum sectors per cluster would be 64, and the
maximum partition size would be 2G. Again, this is for FAT16.

Is FAT32 similar, but with a larger FAT table, and with 32 bit cluster
identifiers in that table?

Harold

--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!

2006\11\07@143253 by peter green

flavicon
face



{Quote hidden}

IIRC NT allowed you to break that rule and have 64k clusters, I remember the 98 resource kit saying that 98 could read and write fat16 partitions over 2 gigabytes but none of its disk utilities were comaptible with them.


> Is FAT32 similar, but with a larger FAT table, and with 32 bit cluster
> identifiers in that table?
i think that is the gist of it but i belive there are some other minor changes too.

according to wikipedia

"In order to overcome the volume size limit of FAT16, while still allowing DOS real-mode code to handle the format without unnecessarily reducing the available conventional memory, Microsoft decided to implement a newer generation of FAT, known as FAT32, with cluster counts held in a 32-bit field, of which 28 bits are currently used."

so that would mean 256 megaclusters

which keeping the 32K cluster size limit would mean 8 terabytes

i don't know why wikipedia says the actual limit is 2 terrabytes and i don't have any ms docs handy to compare but either way its big enough not to be a worry for most hard drives just yet.


2006\11\08@003226 by James Nick Sears

flavicon
face
Is there a way (and if so what is the best way) to access a memory  
card without a filesystem from Windows (or Linux or Mac)?  Something  
programmatic I'm thinking - so I could just write data to a card with  
a PC with custom software and simply stream it off with a PIC without  
worrying about files or filesystems (or vice versa).

-n.


On Nov 7, 2006, at 2:31 PM, peter green wrote:

>
>
>
>> {Original Message removed}

2006\11\08@004701 by Marcel Birthelmer

picon face
In linux, you could simply dd data to the device node: dd
if=myimage.bin of=/dev/sdd for example, if that's how your card is
recognized.
In Windows, there is also a way to access a device directly, by
accessing path \\.\X: . Look through this msdn entry for CreateFile,
in the Physical Access section:
http://windowssdk.msdn.microsoft.com/en-us/library/ms685006.aspx

- Marcel

On 11/7/06, James Nick Sears <TakeThisOuTjnsearsEraseMEspamspam_OUTjamesnsears.com> wrote:
{Quote hidden}

> >> {Original Message removed}

2006\11\08@005035 by Harold Hallikainen

face
flavicon
face
Well, something I just did to allow a pic to bootload off an MMC/SD is to
do the following:

1. Format the card on the PC.
2. Write a single file with the bootload data (I am bootloading with the
hex file). Include a line of identifying text at the start of the file. I
used the company name, copyright, product model, etc.
3. When the PIC reads the card, it just looks for the identifying string
at the start of the file, then reads the file sector by sector.

It's possible there will be bad sectors that will be marked in the FAT,
which we are skipping, but I have not seen the problem as yet. I was doing
a compact bootloader in asm, so I didn't want to get into the FAT (which I
do in the application in C). By formatting the card before putting the
file on there, we SHOULD have the file in a bunch of sequential sectors.
We just have to figure out where it starts, so I used the string search.
The start of the file is always at the start of a sector, so you can just
do a string compare of your sector buffer to the string (you don't need to
see if the string starts in the second byte of the buffer, then the third,
etc.).

In my bootloader, I search for the string, then run through the hex code
checking checksums of each line, looking for end of file record. If it
passes, I find the start of the file again, then bootload.

Harold


{Quote hidden}

>>> {Original Message removed}

2006\11\08@010217 by Tony Smith

picon face
> Is there a way (and if so what is the best way) to access a
> memory card without a filesystem from Windows (or Linux or
> Mac)?  Something programmatic I'm thinking - so I could just
> write data to a card with a PC with custom software and
> simply stream it off with a PIC without worrying about files
> or filesystems (or vice versa).
>
> -n.


Another option is to format the card and create a single file taking up the
entire card.  So long as you avoid the first bit of the card where the FAT
table is, you can do whatever you like with the rest.  You will be able to
read the card in any PC.

How big the FAT table is depends on how it's formatted, of course.  The
bigger the cluster size, the smaller the FAT, so pick huge clusters
(normally a bad idea).  All you need to do then is find the start of your
file (which will be noted in the FAT table anyway).

Seems to be a popular topic these days.  I even noticed my local parts place
- http://www.jaycar.com.au selling SD sockets, which surprised me a bit.  Popular
indeed.

Tony

2006\11\08@055353 by Alan B. Pearce

face picon face
>but either way its big enough not to be a worry for most hard drives just
>yet.

Guess that depends on what you're doing - it would be possible to have
multiple 1TB drives on a system with hardware RAID that the OS sees as a
single drive. It wouldn't take long to be pushing that limit - but using
FAT - well, I guess some people are into S&M ...

2006\11\08@074605 by Peter Bindels

picon face
> so that would mean 256 megaclusters
>
> which keeping the 32K cluster size limit would mean 8 terabytes
>
> i don't know why wikipedia says the actual limit is 2 terrabytes and i don't have any ms docs handy to compare but either way its big enough not to be a worry for most hard drives just yet.

The partition table can't make partitions of over 2^32 sectors, so
there's your 2TiB limit.

2006\11\09@091246 by Peter Bindels

picon face
Hello,

On 07/11/06, Herbert Graf <RemoveMEmailinglist3spamTakeThisOuTfarcite.net> wrote:
> Win2k/XP will not allow
> you to create a FAT32 partition bigger then 32GB. There is NO technical
> reason for this, it's simply MS shoving NTFS down our throats. The
> interesting bit is if you create a FAT32 partition bigger then 32GB with
> another tool, both 2K and XP will have ZERO problem using it!

There are technical reasons they should strongly disrecommend FAT. But
I personally wouldn't recommend NTFS as replacement, if only because
it's closed and therefore impossible to be compatible with (you can't
copy what you can't see with certainty).

> Ahh, the beauty of alternate OS's...

The alternate OSes that allow you to choose between dozens of file
systems without any document on their relative merits might be worse,
depending on the time and experience you want to expend on it. Windows
may only have two choices, but that does make the choice pretty
trivial. Are you talking "alternative" as in "not windows" or as in
"not with a million-plus user base" ?

Regards,
Peter

2006\11\10@102418 by alan smith

picon face
I believe...not too long ago...i saw a demo board from microchip that had a CF or SD card on it.  So think they are supporting it?

---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.


'[PIC] Interfacing a PIC to a microSD or TransFlash'
2008\11\03@052938 by Dumitru Stama
picon face
Ok, i hope you will all forgive me for digging up an old thread like
this one but i used search hoping to find some information regarding
my problem and this is the best result i received.
I want to implement a SD card interface into a product which will be
sold to customers but the profit will be A LOT SMALLER than that $1000
fee i have to pay to SD organisation. After looking stuff up on google
i found out that MMC is free of charge so to say and compatible with
SD cards to some extent.
Now, my question is : can i use a SD card socket and implement some
protocol of access common to both MMC and SD and still be allright in
terms of legally selling the product ?

Thank you in advance


On Fri, Nov 10, 2006 at 5:24 PM, alan smith <micro_eng2EraseMEspam.....yahoo.com> wrote:
> I believe...not too long ago...i saw a demo board from microchip that had a CF or SD card on it.  So think they are supporting it?
>
> ---------------------------------
> Access over 1 million songs - Yahoo! Music Unlimited.
> -

More... (looser matching)
- Last day of these posts
- In 2008 , 2009 only
- Today
- New search...