Currently I am working with CW5.1 and mc9sxdt512 controller.
I have to develop a firmware that it should run on different PCBs.
One PCB should support CAN BUS and it has a crystal of 16MHz.
The second will not support CAN BUS and it has crystal of 14.7MHz.
My thought is to have one project and two targets, named as following:
Since the PCB have different crystals I should have two bootloaders.
The prm file should know what target is selected so it should merge the appropriate bootloader with HEXFILE command.
Also depending on the target, the canbus files should be included or not.
Unfortunatelly I cannot find a way to do it.
Does anyone know how it can be done or have any other suggestion?