2026-02-04 8:02 AM
Hi everyone,
As part of one of my projects, I have to use an SD card to store my data. Since the final board has not yet been manufactured, I started developing my software on the STM32303E-EVAL evaluation kit.
For reference, it uses the same microcontroller that will be on my own board.
Back to the STM32303E-EVAL. When I received this board, the provided demo worked correctly (GUI display and so on).
I wanted to test the examples dealing only with the SD card (FAT32 format), which are available in the repository:
→ STM32Cube_FW_F3_V1.11.0\Projects\STM32303E_EVAL\Applications\FatFs\FatFs_uSD
Imported into CubeIDE, it does not compile, files are missing – in short, it is a mess.
So I started over from scratch, installed AC6, opened the project, flashed it, started a debug session, and I get stuck in f_mount().
The SD card is correctly inserted.
Could you help me?
Or, failing that, provide me with a working example?
Solved! Go to Solution.
2026-03-16 9:10 AM
The main problem was the size of the SD Card.
The board came with a 32G Card which is not compatible with example.
Working with a 2Gb SD Card.
2026-02-04 8:23 AM
Hello,
@DNA-) wrote:
→ STM32Cube_FW_F3_V1.11.0\Projects\STM32303E_EVAL\Applications\FatFs\FatFs_uSD
Imported into CubeIDE, it does not compile, files are missing – in short, it is a mess.
Did you try to refer to the user manual UM2579 "Migration guide from System Workbench to STM32CubeIDE"
2026-02-04 11:40 PM
Hello,
Yes, I did it. I can’t manage to compile, but that’s not a big deal, I switched to AC6 instead.
The core of the problem, and what I don’t understand, is why the example doesn’t work in the project opened with AC6.
I really need this part to work so that I can move forward with the development of my firmware.
2026-02-09 1:16 AM
To be more precise, the code loops on:
/*----------Activates the card initialization process-----------*/
/* Send CMD1 (Activates the card process) until response equal to 0x0 and
Wait for no error Response (R1 Format) equal to 0x00 */
while (SD_SendCmd(SD_CMD_SEND_OP_COND, 0, 0xFF, SD_RESPONSE_NO_ERROR) != MSD_OK);in stm32303e_eval_sd.c
2026-03-16 9:10 AM
The main problem was the size of the SD Card.
The board came with a 32G Card which is not compatible with example.
Working with a 2Gb SD Card.