cancel
Showing results for 
Search instead for 
Did you mean: 

FileX standalone mode flag missing

biebert
Associate

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. :)

 

Screenshot 2026-03-11 122654.png

1 ACCEPTED SOLUTION

Accepted Solutions

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.Filex standalone.png

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

Filex with ThreadX.png

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.

View solution in original post

3 REPLIES 3
Ghofrane GSOURI
ST Employee

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.

Andrew Neil
Super User

@biebert wrote:

it seems like FatFS is not supported by default in CubeMX,  


But you can still use FatFs directly:

https://community.st.com/t5/stm32-mcus-embedded-software/can-t-find-fatfs-middleware-option-for-stm32u5-spi-sd-card/m-p/884253/highlight/true#M73522

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

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.Filex standalone.png

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

Filex with ThreadX.png

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.