Skip to main content
Associate
January 1, 2025
Solved

Different build configurations for different ioc file

  • January 1, 2025
  • 3 replies
  • 949 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 ?

This topic has been closed for replies.
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

3 replies

STTwo-32
ST 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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
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
ST 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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.