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
  • 2 replies
  • 2645 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

 

This topic has been closed for replies.
Best answer by Pavel A.

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

 

2 replies

Pavel A.
Pavel A.Best answer
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!!!!