2026-02-11 2:35 AM - last edited on 2026-02-11 2:41 AM by mƎALLEm
Hi everyone,
I’m asking for your help with accessing my SD card. I’m running into an issue with the STM32N6DK750 Discovery Kit and would really appreciate some advice.
I’m trying to write data to an SD card using FileX and ThreadX. Everything compiles and debugs fine, but nothing actually gets written to the card.
I also tried the FX_MultipleAccess example provided by ST, but it doesn’t compile. I’ve tried fixing several compilation errors, but some declarations are missing, like byte_pool in app_filex.c.
I’m not sure what’s causing the issue, and I’m wondering if I might have missed an important step or misconfigured something.
Solved! Go to Solution.
2026-02-11 5:54 AM
I found the issue: the SD card I was using did not support FAT32, which prevented any files from being written.
I replaced it with a 16GB SD card, and now everything works perfectly.
Thanks !
2026-02-11 2:56 AM - edited 2026-02-11 3:04 AM
Hello @HMTb and welcome to the ST community,
May be better to you is to start with / refer to the example provided in the N6 HAL package:
Edit: why that example doesn't compile? how you did download the package? from Github or from this link?
if from Github you need to clone with recursive option. Please read this article:
Downloading STM32Cube packages from GitHub correctly
2026-02-11 4:06 AM
Thank you for your welcome and guidance.
I actually generated the example using CubeMX, but I don’t understand why some data appear to be missing after generation—it seems a bit strange.
I also cloned the GitHub repository as you suggested, and in that case, it compiles correctly. However, when I run the code on the board via CubeIDE <just to test whether anything is actually written to my SD card before using CubeProgrammer with the trusted binary>, the code runs fine on the board.
The problem is that when I remove the SD card and check it on my PC, I don’t see any files, the card appears empty.
I’m not sure why this happens and would really appreciate any advice on why the SD card remains empty even though the code executes correctly on the board.
Thank you in advance for your help!
2026-02-11 4:54 AM
I'm not file system expert but I didn't understand this sentence:
"The problem is that when I remove the SD card and check it on my PC, I don’t see any files, the card appears empty." please clarify so at least others can help you efficiently. Why you need to see the files in your PC if the SD card is removed?
2026-02-11 5:17 AM
Sorry, let me clarify, after flashing and running the application on the board, I removed the SD card from the board’s SDMMC slot. I then inserted the SD card into my PC using an external card reader to inspect its contents.
However, when I mount the SD card on my computer, no files or directories are visible. The SD card appears empty, as if no data had been written to the filesystem.
2026-02-11 5:54 AM
I found the issue: the SD card I was using did not support FAT32, which prevented any files from being written.
I replaced it with a 16GB SD card, and now everything works perfectly.
Thanks !