4 years, 2 months ago.

which nucleo board is compatible with SD card?

I am using LO31k6 for now and it shows me following error? Error: No space in execution regions with .ANY selector matching ccsbcs.NUCLEO_L031K6.o(i.ff_wtoupper). Error: No space in execution regions with .ANY selector matching mbed_board.o(i.mbed_error_printf). Error: No space in execution regions with .ANY selector matching SPI.o(i._ZN4mbed3SPI5writeEi). Error: No space in execution regions with .ANY selector matching mbed_critical.o(i.core_util_critical_section_exit). Error: No space in execution regions with .ANY selector matching SDFileSystem.NUCLEO_L031K6.o(.conststring). Error: No space in execution regions with .ANY selector matching TextLCD.NUCLEO_L031K6.o(.conststring). Error: No space in execution regions with .ANY selector matching main.NUCLEO_L031K6.o(.conststring). Error: No space in execution regions with .ANY selector matching stm32l0xx_hal_rtc.o(i.HAL_RTC_GetDate). Error: No space in execution regions with .ANY selector matching ff.NUCLEO_L031K6.o(i._Z11sync_windowP5FATFS).

Question relating to:

Affordable and flexible platform to ease prototyping using a STM32F042K6T6 microcontroller.

1 Answer

4 years, 2 months ago.

Hello, If you compile for the L073, you will find out that MBED lib + SDCARD lib takes around 50kb of flash. This just does not fit in the L031 and its 32kb of flash.

Accepted Answer

Which microcontroller with M0 cortex do you suggest for me. I am in doubt because previously it didnt work with L152RE too. They are still solving the problem for that. Is there any nucleo board that you have tested with MBED SDCARD. ? Thank you

posted by jayendra mishra 12 Sep 2016

Hello, the mbed SDCARD library use the SPI peripheral, it should work fine on any device with a SPI, provided there is enough program memory space to hold the libraries and the application you want. All STM32 have a SPI, look at the pinout diagram on each platform page in order to locate the SPI pins.

After a quick test I can tell you need about 50k for SDCARD + MBED libraries, so your NUCLEO-L152RE should work fine with its 512 KB of Flash. Could you please explain what is wrong with it?

The STM32L152 is has a cortexM3 core. If you really want a cortex M0 or M0+, I recommand one of the following (in no particular order) :

Of course if you want to use other libraries, the 64k device may fill-up quickly too...

posted by Maxime TEISSIER 13 Sep 2016