Hi,
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:
XDT512_CAN_BUS_16MHZ
XDT512_NO_CAN_BUS_14MHZ
Since the PCB have different crystals I should have two bootloaders.
Bootloader_CRYSTAL_14745600_XDT512.s19
Bootloader_CRYSTAL_16000000_XDT512.s19
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?
Thank you