One MCU type, multiple functionalities, one hex file
In a project there are multiple MCUs of the same type. Each of these must have the same software on it and decide at startup which role they take. Some pin definitions are common for all the MCUs (like clock, identification, communication,...) and others differ completely, hence need to be initialized differently.
It is a requirement that all of these MCUs are having the same software on it for update reasons. And preferrably changes pin definitions could be made in CubeMX.
One option would be to have a CubeMX project for each of the MCU role and copy the generated code by hand to a overall project. This involvels a lot of hands on which is cumbersome and error prone. But since not too many changes are expected certainly doable.
I've looked at nested projects. But since only one .ioc file can be active within one IDE project not really an option.
There is also the option of Project references. But I could not find any documentation on the purpose of these and how it would work.
Is there a good way to handle this situation in CubeIDE?
