cancel
Showing results for 
Search instead for 
Did you mean: 

we are using STM32h743 to write a SD card but can not write more than 4GB. does any one have this issue

sbarn.1
Associate II
 
4 REPLIES 4

Hello

FAT32 system supports only 2^32 (4GB) files max

Instead use exFAT for unlimited file size.

Format the card with exFAT option . FATFS supports exFAT

Hi Thanks for your reply , my programmer is using ex FAT . The problem seems to be when we exceed the 4GB it will no longer write files , we just end up with 0K file .
So when we write say 20 files and the total is close to 4GB then write 21st file the stm just writes 0K from the onwards .

Yeah, you'd probably need to get a lot more aware of the limitation of 32-bit variables. You'd need to be using 64-bit for all the manipulation, and I'm not sure if FatFs is optimized for that end of things.

Large files get to be unmanageable, the FAT chains can get very long. For long term logging consider if there is a better way to split files, ie daily or weekly

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sbarn.1
Associate II

we write file from a camera around 1GB some smaller , so you think we should split that file up into small parts when writing ?