cancel
Showing results for 
Search instead for 
Did you mean: 

Import Cmake (with presets) similar cubemx cmake generated project to STM32CubeIDE

oss-mazi
Associate II

Hi
How Import Cmake (with preset) similar cubemx cmake generated project to stm32cubeide?
(import cmake project, not use ioc & recreate project)

ide lastest 1.15.1

1 REPLY 1
Semer CHERNI
ST Employee

Hello @oss-mazi 

First let me thank you for posting.

If you have already generated a CMake project and need to import it to STM32CubeIDE follow these steps:

  1. Open File>New>STM32 Cmake Project
  2. In the displayed window select "Project with existing Cmake source"
    SemerCHERNI_1-1717420129585.png

     

  3. In the next window name the project and select the source folder to import
    SemerCHERNI_2-1717420242473.png
  4. Select the MCU
    SemerCHERNI_3-1717420301740.png
  5. Then you can continue the development, buid and debug

For more details check the application note https://www.st.com/resource/en/application_note/an5952-how-to-use-cmake-in-stm32cubeide-stmicroelectronics.pdf

KR,
Semer;

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.