Other Parts Discussed in Thread: SYSCONFIG
Hi
We we use sysconfig to setup our project for the target.
We have two versions of the HW, with small differences, and need to make separate bulds for those two versions.
In a normal handwritten configuration, we would have one .C file with all the shared setting, and the two files for each build with the few settings that differ, (some might go to use of #ifdefs).
How to do something similar with sysconfig?
We would like to avoid doing a complete copy of all configurations in sysconfig, as that would lead to a manual sync of all the shared parts. thus more maintenance (future might bring more HW versions).
I did a fast test and split the content of the foo.sysconfig file, into two files, but that did not appear to work at least not without some magic spells.
But Maybe there is another clever way to achieve this separation?
As an example case. please assume we have a sysconfig setup with
- RAM allocation (two cores),
- SPI setup
- SCI setup
- EPWM setup
- Some simple GPIO setup
- ADC setup.
The difference between the two hardware's is
- Two ADC channels has swapped pins.
- SPI has changed the pin for CS.
- One HW has an extra SCI.
NB: The actual MCU is a F28379D, I did not put that in topic, as i assume the answer is sysconfig specific and not MCU specific.