2024-05-17 02: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?
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
2024-05-17 03: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, ...
2024-05-17 03: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,
2024-05-17 03: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
2024-05-17 04: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.
2024-05-17 05: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.
2024-05-17 05:49 AM
On which driver/midelware code you have tested this?
2024-05-17 08:57 AM - edited 2024-05-17 09: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.
2024-05-20 02: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?
2024-05-20 03: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.