7 years, 8 months ago.

SD card hello world is not working with 32GB SD card.

Hello all, For my project i need to store large volumes of data to SD card. My SD card program is not working with 32GB sd card where as it is working fine with 4GB and 8GB. What could be the reason?. I took libraries from SD card hello world. My µcontroller is : STM32L053R8. Thank in advance.

1 Answer

7 years, 8 months ago.

Hi Mohan,

Thanks for your message, could you please try another library such as "https://developer.mbed.org/users/xxll/code/SDHCFileSystem/"

See if that works better for you.

Have you updated your mbed library to the latest revision?

Is the 32gb card formatted to FAT12 / FAT16 / FAT32? It may be possible the card is indeed too large even though 32gb SDHC is supported.

https://developer.mbed.org/users/mbed_unsupported/code/FatFileSystem/

Let me know how you get on, all the best.

-Andrea

Hi Andrea, Thank you for quick reply. When i compile your library i see some errors as below.

Error: Undefined symbol mbed::FATFileSystem::open(const char*, int) (referred from SDHCFileSystem.NUCLEO_L053R8.o).
Error: Undefined symbol mbed::FATFileSystem::mkdir(const char*, int) (referred from SDHCFileSystem.NUCLEO_L053R8.o).
Error: Undefined symbol mbed::FATFileSystem::format() (referred from SDHCFileSystem.NUCLEO_L053R8.o).
Error: Undefined symbol mbed::FATFileSystem::remove(const char*) (referred from SDHCFileSystem.NUCLEO_L053R8.o).
Error: Undefined symbol mbed::FATFileSystem::opendir(const char*) (referred from SDHCFileSystem.NUCLEO_L053R8.o).
Error: Undefined symbol mbed::FATFileSystem::FATFileSystem__sub_object(const char*) (referred from SDHCFileSystem.NUCLEO_L053R8.o).
Error: Undefined symbol mbed::FATFileSystem::~FATFileSystem__sub_object() (referred from SDHCFileSystem.NUCLEO_L053R8.o).

I have updated mbed library to latest.

I did not understand the point....Is the 32gb card formatted to FAT12 / FAT16 / FAT32? I have downloaded a software called SDFormatter. There i format the card and at the end it showing card is FAT32. is formating to FAT32 is s diffrent concept?

Thank you.

posted by Mohan gandhi Vinnakota 15 Aug 2016