cancel
Showing results for 
Search instead for 
Did you mean: 

FileX + CMake + CM33 = error

nicolas
Senior

I'm trying to build a STM32U5 (THREADX_ARCH = cortex_m33) project that use FileX (https://github.com/STMicroelectronics/stm32-mw-filex) with CMake.

I encounter an error that say "FileX/ports/cortex_m33/gnu" is not an existing directory.

Why Cortex m33 is not supported by FileX ?

1 ACCEPTED SOLUTION

Accepted Solutions

My current solution is to copy the folder FileX\ports\cortex_m3 into FileX\ports\cortex_m33 but i'm not satisfied with it because i need to manually copy this folder or to fork the stm32-mw-filex repo. It would be best to have the stm32-mw-filex repo support m33 so I have open an issue.

View solution in original post

7 REPLIES 7
Saket_Om
ST Employee

Hello @nicolas 

Please refer to the example below: 

STM32CubeU5/Projects/NUCLEO-U545RE-Q/Applications/FileX/Fx_File_Edit_Standalone at main · STMicroelectronics/STM32CubeU5 · GitHub

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.
Saket_Om

Thanks for the answer.

But this example doesn't use CMake, and it also doesn't use ThreadX.

Without ThreadX, i think i could build FileX with THREADX_ARCH = generic.

Hello @nicolas 

You can use the existing IOC file, then add THREADX and generate cmake project. 

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.
Saket_Om

Thanks for the answer. I was able to add ThreadX but I don't know how to generate a cmake project from the ioc.

Hello @nicolas 

Please use the latest version of STM32CubeMX. 

Got to the tab Project Manager and under the option Toolchain/ IDE choose Cmake.

Saket_Om_0-1750062771118.png

 

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.
Saket_Om

Thanks for the answer. I wasn't able to convert the project because I was using STM32CubeIDE, now I can with STM32CubeMX.

But the generated CMake files are not using a hierarchical structure. So it doesn't help me for using CMake with the provided CMakeLists.txt found in stm32-mw-threadx and stm32-mw-filex.

My current solution is to copy the folder FileX\ports\cortex_m3 into FileX\ports\cortex_m33 but i'm not satisfied with it because i need to manually copy this folder or to fork the stm32-mw-filex repo. It would be best to have the stm32-mw-filex repo support m33 so I have open an issue.