cancel
Showing results for 
Search instead for 
Did you mean: 

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

JaydenLe
Associate

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

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

 

View solution in original post

2 REPLIES 2
Pavel A.
Evangelist III

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

 

thank you very much!!!!