2026-03-11 4:28 AM
Hi,
I'm trying to access SD cards with an STM32C091 MCU. It seems like FatFS is not supported by default in CubeMX, therefore I looked into FileX. I don't have a need for running an RTOS, so I would like to run FileX in standalone mode. However, the FileX parameters in CubeMX don't contain FX_STANDALONE_ENABLE (see attached). Can anyone offer some insight into the topic?
Thanks you for your time and effort. :)
Solved! Go to Solution.
2026-03-12 4:20 AM
Hello @biebert
When you enable FileX in standalone mode (without enabling ThreadX) and generate the code in STM32CubeMX, the FX_STANDALONE_ENABLE macro is automatically set.
You can verify this by opening the generated fx_user.h file, where you will find FX_STANDALONE_ENABLE defined, as shown below.
When both FileX and ThreadX are enabled in STM32CubeMX, the project is generated in RTOS mode.
In this case, the FX_STANDALONE_ENABLE macro is commented out (or not defined) in the generated fx_user.h file
However , a change request #0060443 has been escalated to dev team to expose FileX standalone mode more clearly in STM32CubeMX (FX_STANDALONE_ENABLE) .
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-03-11 4:45 AM
Hello @biebert
I'm currently checking this behavior. I will get back to you ASAP.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-03-11 5:24 AM
@biebert wrote:it seems like FatFS is not supported by default in CubeMX,
But you can still use FatFs directly:
2026-03-12 4:20 AM
Hello @biebert
When you enable FileX in standalone mode (without enabling ThreadX) and generate the code in STM32CubeMX, the FX_STANDALONE_ENABLE macro is automatically set.
You can verify this by opening the generated fx_user.h file, where you will find FX_STANDALONE_ENABLE defined, as shown below.
When both FileX and ThreadX are enabled in STM32CubeMX, the project is generated in RTOS mode.
In this case, the FX_STANDALONE_ENABLE macro is commented out (or not defined) in the generated fx_user.h file
However , a change request #0060443 has been escalated to dev team to expose FileX standalone mode more clearly in STM32CubeMX (FX_STANDALONE_ENABLE) .
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.