cancel
Showing results for 
Search instead for 
Did you mean: 

Import a CMake project created by CubeMX into CUbeIDE

SMakr.15
Associate II

I have started a CMake project with CubeMX. I can edit, build and debug using VS Code. CubeIDE has some debugging abilities missing in VSCode extension. So I would like to know if there is a way to do all the extensive editing in VSCode and the debugging in the IDE. That would be an ideal scenario because I could combine the best features of both environments.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User
  • In STM32CubeIDE, go to File → STM32 Project Create/Import.
  • Under Import STM32 Project, select STM32 CMake Project, then click Next.
  • Enter a project name and select the source folder, then click Next.
  • Choose the correct STM32 MCU and click Finish.

 

Solved: Can I use STM32CubeMX2 to generate an STM32CubeIDE... - STMicroelectronics Community

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
TDK
Super User
  • In STM32CubeIDE, go to File → STM32 Project Create/Import.
  • Under Import STM32 Project, select STM32 CMake Project, then click Next.
  • Enter a project name and select the source folder, then click Next.
  • Choose the correct STM32 MCU and click Finish.

 

Solved: Can I use STM32CubeMX2 to generate an STM32CubeIDE... - STMicroelectronics Community

If you feel a post has answered your question, please click "Accept as Solution".

If I recall correctly, I have tried this. Nevertheless I will give it a try again and get back to you in any case.

Thank you for your time and effort.

I figured out what my issue was. Your suggestion is correct and works if the project directory is not the same as CubeIDE's workspace directory. The process doesn't copy or move any files from original location into the workspace, which is helpful and desired behavior in my use case.

Thank again for your valuable help.