7 years, 2 months ago.

mbed + SDCard library = BIG SIZE OF COMPILED CODE

Why do no one reply for this issue? Many boards when you try to use the sd card library, you cannot compile the code as mbed make the size of the code so big that it is exceeding the size of the flash memory of the ST chip. I reported this problem and now others are reporting similar problem for other Nueclo board. It is strange that a small code like running a sd card should fail with Nucleo f030r8. What make mbed so big or sd-card library so big that you cannot use them?? Why no one answer this question .. ? Regards,

1 Answer

7 years, 2 months ago.

SD card must use SPI driver for physical layer. Must implement most of SD card protocol. Must implement FAT (12,16,32) file systems Must implement routines to read directories, read filenames, date time,.... Must implement open,read,write, .... for user application to manipulate files.

Yes, it is big, it must be.

why not choose a micro controller (flash and RAM) based upon the requirements rather than pick a micro and complain that you chose poorly.

Accepted Answer

Thanks for the reply. My project is based on the idea that you have a script file on the SDCARD. My project is a script interpreter that read the written script from the sd-card and run the script. It needs a lot of mem and sd card also. I decided to change the development board to a bigger one. There is no solution for F030R8 for my project. The size of the flash mem for F030R8 is too low. F030R8 might bee good for small project. Mine is quite big. It is a big project.

posted by M J. 21 Feb 2017

Assigned to M J. 7 years, 2 months ago.

This means that the question has been accepted and is being worked on.