cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 cube IDE with code generator and CMake

Patel.Harsh
Associate

Hello Experts,

I am looking for a solution in which we can create STM32 project with .ioc file and generate the code but cmake as build tool instead of make.

I know we have couple of options while creating new project as follows:

PatelHarsh_0-1760651709094.png

We can either create STM32 project which allows to have .ioc file and can generate code but that is make file-based project.
If create CMake project, then it doesn't have .ioc and code generation feature.

In past, I created STM32 project and on top of that added CMake list files but want to know is there any better option.

Thanks in advance.


2 REPLIES 2
Pavel A.
Super User

In the standalone CubeMX you can create a CMake project from .ioc.

PavelA_0-1760657309643.png

 

TDK
Super User

> I am looking for a solution in which we can create STM32 project with .ioc file and generate the code but cmake as build tool instead of make.

Create the project with the standalone STM32CubeMX and choose cmake as the target in Project Manager -> Code Generator.

TDK_0-1760662101123.png

 

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