Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 22:43 19 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : SD cards and how to format them

Author Message
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 02:00am 03 Jul 2020
Copy link to clipboard 
Print this post

Hi all,

I'm having some difficulty with using (previously used) SD cards. I *think* I know how to format them... there's a program called SD Formatter, or I can use the formatter built into "ëxplorer".

which format should I use? NTFS, FAT, FAT32?

I have one SD card which has survived since I started using it back when I got the Mono Maximite.

Is there anything special I need to do to it? The card that's in use is a 4GB Verbatim.

Regards, Bob Devries
Bob Devries
Dalby, QLD, Australia
 
MustardMan

Senior Member

Joined: 30/08/2019
Location: Australia
Posts: 175
Posted: 02:17am 03 Jul 2020
Copy link to clipboard 
Print this post

Hi Bob,

AFIK NTFS formatted devices can't be used with MMbasic as it does not understand the file system.

You can format FAT as long as the size limitations don't get you (or you are OK with wasting some space) as they are universally recognised by not just MMbasic, but just about any embedded system or operating system.

FAT32 is (from my understanding) also usable with MMbasic. There might be a problem using it with older embedded systems (eg: older MP3 players, navigation devices, etc).
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1345
Posted: 02:21am 03 Jul 2020
Copy link to clipboard 
Print this post

ExFAT on cards > 32GB else FAT32.

Mike.
It's all too hard.
Mike.
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 705
Posted: 02:25am 03 Jul 2020
Copy link to clipboard 
Print this post

Right .... FAT32 is pretty universally usable .

ONE THING THOUGH !

SD cards do eventually ' wear out ' ( or something ? )
I have had more than one loose ability to be formatted .....
my site
 
SimpleSafeName

Senior Member

Joined: 28/07/2019
Location: United States
Posts: 286
Posted: 05:04am 03 Jul 2020
Copy link to clipboard 
Print this post

Having recently gone through this, here's what it took for me:

Assuming a CMM2 board...

Cards less than 8Gb are not recommended.
Like KeepIS says, ExFAT on cards > 32GB else FAT32.
Upgrade your firmware.

And finally, if all else fails set this switch: OPTION SD TIMING CONSERVATIVE
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1345
Posted: 05:25am 03 Jul 2020
Copy link to clipboard 
Print this post

Latest Firmware comes default at Normal (was called CONSERVATIVE), new option of OPTION SD TIMING FAST.

Mike
It's all too hard.
Mike.
 
MustardMan

Senior Member

Joined: 30/08/2019
Location: Australia
Posts: 175
Posted: 11:35am 03 Jul 2020
Copy link to clipboard 
Print this post

The recommendation from Microsoft is to format >32GB cards with ExFAT, but I understood that ExFAT is a proprietary file system and to use/implement it requires payment to Microsoft. Hence, it is not very well supported outside of Windows operating systems. A bit like NTFS used to be until it was reverse engineered (and even so, many OSs still require booting a native Windows OS to fix NTFS problems).

It is certainly possible to format cards of >32GB as FAT32, and I have done just that. Unfortunately that can lead to problems with *some* embedded devices as they assume anything over 32GB *will* be ExFAT without actually checking! Gparted does a fine job of formatting cards >32GB as FAT32.

SimpleSafeName - why do you recommend against anything smaller than 8G? I regularly use 2G and 4G cards. The only reason I can think of is that they are now becoming difficult to buy!


Cheers,
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8567
Posted: 01:04pm 03 Jul 2020
Copy link to clipboard 
Print this post

  Quote  It is certainly possible to format cards of >32GB as FAT32, and I have done just that. Unfortunately that can lead to problems with *some* embedded devices


Cards over 32Mb formatted FAT32 are not supported on the CMM2 as they require a non-standard block size

  Quote  why do you recommend against anything smaller than 8G

Experience has shown that some 4GB and many 2GB cards do not meet the basic performance standards defined for SPI operation and don't work reliably
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2285
Posted: 01:47pm 03 Jul 2020
Copy link to clipboard 
Print this post

  matherp said  Cards over 32Gb formatted FAT32 are not supported on the CMM2 as they require a non-standard block size

  Quote  why do you recommend against anything smaller than 8G

Experience has shown that some 4GB and many 2GB cards do not meet the basic performance standards defined for SPI operation and don't work reliably


i don't know about in the rest of the world, but here in New Zealand a 16gb SD card can be brought new for as little as nz$5, smaller cards are on stock clearance. similarly, 8gb USB flash drives are being phased out by the major suppliers, replaced by 16gb at the bottom end of the price range (approx nz$8). one company i work with (who use several hundred flash drives per year) have been forced to go from using 8gb to using 16gb for jobs.

i can see 32gb becoming the new 'bottom end' by the end of the year, thereafter 64gb/exFAT will start to become the next 'bottom end'. like it or not, if FAT32 is limited to 32gb there will be a supply issue for new, usable SD cards in the future.


cheers,
rob   :-)
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8567
Posted: 02:03pm 03 Jul 2020
Copy link to clipboard 
Print this post

FAT32 is limited to 32GB, exFAT is not and is supported. exFAT design docs are now openly available from Microsoft.

  Quote  To this end, we will be making Microsoft’s technical specification for exFAT publicly available to facilitate development of conformant, interoperable implementations.


Microsoft open source blog August 28, 2019
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2285
Posted: 02:09pm 03 Jul 2020
Copy link to clipboard 
Print this post

"exFAT is not and is supported": from this i assume the CMM2 supports cards formatted as exFAT? if so, then there is no problem  


cheers,
rob   :-)
 
MustardMan

Senior Member

Joined: 30/08/2019
Location: Australia
Posts: 175
Posted: 10:42am 04 Jul 2020
Copy link to clipboard 
Print this post

Good to know ExFAT is supported, and that Microsoft has opened it up.

@robert.rozee : I suspected that purchasing was going to be the issue! Still, I suppose if you don't like ExFAT, and since the cards are so dang cheap, there would not be a problem formatting cards >32GB *as* 32GB and wasting the rest.

Or would it?
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024