Skip to main content
Associate
January 1, 2025
Solved

Different build configurations for different ioc file

  • January 1, 2025
  • 1 reply
  • 924 views

Hi,

I am trying to find a solution to support different build configurations for the same MCU but different revision of PCB builds. PCB revisions could happen because of reassignment of pins and peripherals. I am using standalone version of CubeMX to generate code. So, I will end up with two different .ioc files for each revision and when I generate code, 2 separate project files are generated.

Is there a way to have a single project, but 2 different build configurations for each ioc file? Looks like CubeMX doesn't support this, but are there any tricks as a workaround ?

Best answer by STTwo-32

A single project should be based on a single .ioc file. It is not possible to have a project based on a new .ioc file each Time.

Best Regards.

STTwo-32

1 reply

STTwo-32
Technical Moderator
January 1, 2025

Hello @kraman2024 

Could you please give more details about what you are looking for (an example of a use case Will really do the job).

Best Regards.

STTwo-32

Associate
January 1, 2025

I want to  maintain 2 different ioc files for 2 different hardware revisions of a custom board. I want a single project either EWARM or Cube IDE project to support these 2 revisions of the board as separate build configurations. Is this possible?

STTwo-32
STTwo-32Best answer
Technical Moderator
January 1, 2025

A single project should be based on a single .ioc file. It is not possible to have a project based on a new .ioc file each Time.

Best Regards.

STTwo-32