Skip to main content
nicolas
Senior II
June 11, 2025
Solved

FileX + CMake + CM33 = error

  • June 11, 2025
  • 1 reply
  • 531 views

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 ?

Best answer by nicolas

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.

1 reply

Technical Moderator
June 13, 2025
"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"
nicolas
nicolasAuthor
Senior II
June 13, 2025

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.

Technical Moderator
June 13, 2025

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"