Skip to main content
Associate
July 12, 2024
Solved

How to build an STM32 project created by CMake on the Ubuntu command line.

  • July 12, 2024
  • 1 reply
  • 1894 views

Hello.
My STM32CubeMX version is 6.12, and I have chosen to create the project through the CMake toolchain.
But when I make the project directly, I encounter the problem that target CPU does not support ARM mode. How can I solve it?
I didn't change anything in CMakeLists.txt

JaydenLe_0-1720796187900.png

 

Best answer by Pavel A.

Cortex-M indeed does not support "ARM mode". It only supports Thumb mode. Check the toolchain definitions.

 

1 reply

Pavel A.
Pavel A.Best answer
Super User
July 12, 2024

Cortex-M indeed does not support "ARM mode". It only supports Thumb mode. Check the toolchain definitions.

 

JaydenLeAuthor
Associate
July 13, 2024

thank you very much!!!!