SD card memmory support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-17 2:51 AM
Hello,
Hope everyone are doing well!
Can anyone please provide specific numbers?
What is the maximum size(GB/MB) of the micro SD card each STM32 device can support?
- STM32F407VET6 - SDIO interface
- STM32F745VET6 - SDMMC interface
- STM32H745ZIT6 - 2 SDMMC interface
Let me know if you require any more information.
Also please let me know, How I can conclude the same information for any other controller parts?
Thanks and Regards
Umang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-17 3:10 AM
It doesn't have anything (directly) to do with the microcontroller itself.
It may be limited by the filesystem software you use; eg, FatFs
It will be limited by the formatting you use on the card; eg, FAT-16, FAT-32, ...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-17 3:15 AM
ok,
But let's assume we will use freeRTOS with FatFS as middleware and choose FAT-32 or exFAT formatting.
How one can calculate the maximum supporting size?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-17 3:23 AM
Check the FatFs documentation:
Also the documentations of the FAT-32 and exFAT formats.
eg, https://www.sciencedirect.com/topics/computer-science/maximum-file-size
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-17 4:14 AM
Hi,
>What is the maximum size(GB/MB) of the micro SD card each STM32 device can support?
Read in rm of the controller, you want to use :
e.g.
from F407 ds :
from H563 ds:
And as Andrew wrote, size is at first limited by the filesystem and the card type.
I have biggest cards with 64GB and exfat , all working fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-17 5:30 AM
They should all be able to use 2TB cards with appropriately coded drivers and file systems.
I've tested 400-512 GB cards, larger than practical in my opinion, but usable.
You wouldn't want to use FatFs 0.12 that ST ships. It's from 2017 has issues with large volumes.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-17 5:49 AM
On which driver/midelware code you have tested this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-17 8:57 AM - edited ‎2024-05-17 9:01 AM
Definitely with F4, F7 and H7, and with eMMC
FatFs 0.14 and 0.15
On Keil w/HAL
Part of the testing / validation is the filling the cards with content (PRBS), and recovering the same.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-20 2:54 AM
Thanks for your input!
During further testing, as per below snap,
STM32CUBEMX doesn't have an enable selection to use exFAT with STM32F407VET,
Does this limit our read/write operation on the memory card to 32GB(With FAT32) only?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-20 3:14 AM
>Does this limit our read/write operation on the memory card to 32GB(With FAT32) only?
No. Cards up to 32GB can be FAT32 , no problem . (Just check, whats on the card you use, or format it.)
+
Maybe you try : tiny mode -> disabled . (exFAT is not "tiny" ...) Then see...if possible.
