Skip to main content
PBala
Visitor II
January 15, 2020
Question

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

  • January 15, 2020
  • 2 replies
  • 735 views

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

This topic has been closed for replies.

2 replies

berendi
Principal
January 16, 2020

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
Principal
January 16, 2020

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.