cancel
Showing results for 
Search instead for 
Did you mean: 

How to have one project built for multiple target MCUs of the same family

PBala
Associate

Hi, I want to use the same code on two slightly different MCUs, one of which is an STM32L011F3Ux and the other one STM32L011K4Tx. I don't want to create two separate projects because it makes it less robust to keep track of code changes in a Version Control System such as git. How to do that? I don't want to have code separated in VCS and git pull it to both of the projects each time I want to make a change locally

2 REPLIES 2
berendi
Principal

If you don't use the extra flash and pins on the bigger one, just create a project for the smaller one, it'll work on both.

Ozone
Lead II

Modern "convenience" IDEs use to hide many relevant project settings in more or less specified meta-files.

I do not see how this is of any advantage in a multi-platform environment.

As Eclipse-based IDE, CubeIDE should support a makefile approach.

Or use makefiles without the IDE. You could still use CubeIDE for debugging.