2025-08-13 5:27 AM - last edited on 2025-08-13 6:33 AM by Saket_Om
Hi, It works, apparently a different microSd card works.
however, it is strange that, DATALOG2 could write into the card.
May i know how shall i perform sd card format function or what to fill up in the function?
Follow-up of the the topic below:
Solved: Re: Standalone FileX SDIO SD Card Initializing err... - STMicroelectronics Community
2025-08-13 6:03 AM
Hello @frogrammer
To format your SD card you can use f_mkfs(). Please refer to the article below:
How to create a file system on a SD card using STM... - STMicroelectronics Community
2025-08-13 6:05 AM
thats using fatfs, not FileX
2025-08-13 6:27 AM
For FileX it is fx_media_format(). Pledase refer to the implementation on the example below:
2025-08-13 8:20 AM
Usually every new SD card is formatted,
at the optimum for this card.
So you just could do it worse by format the card.
And always first do only read tests, with existing file on card, then read and write tests. Format should be never needed, bzw bigger cards are exfat formatted and need this enabled in fat drivers.