FileX + CMake + CM33 = error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-11 9:08 AM
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 ?
Solved! Go to Solution.
- Labels:
-
FileX
-
STM32U5 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-17 12:21 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-13 6:09 AM
Hello @nicolas
Please refer to the example below:
Saket_Om
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-13 8:09 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-13 8:50 AM
Hello @nicolas
You can use the existing IOC file, then add THREADX and generate cmake project.
Saket_Om
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-16 12:50 AM
Thanks for the answer. I was able to add ThreadX but I don't know how to generate a cmake project from the ioc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-16 1:33 AM - edited ‎2025-06-16 1:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-16 2:04 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-17 12:21 AM
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.
