How to support multiple targets in CodeWarrior(Classic, Eclipse)/KDS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to support multiple targets in CodeWarrior(Classic, Eclipse)/KDS

How to support multiple targets in CodeWarrior(Classic, Eclipse)/KDS

In some application, we hope one project can support multiple targets. Some typical examples: user needs different firmware to run on different PCB with different crystal on it; Or sometimes user needs one project support both debug and release mode; another widely used example is, user needs one project support multiple part numbers.etc.

To implement the multiple targets project, we will consider at least three aspects:

  • Depend on the different targets, some files/codes may be included or not. 
  • Depend on the different targets, compiler/linker settings may be different.
  • If bootloader involved, different target may link with different bootloader firmware.

 

In this article I will discuss this topic with Classic CodeWarrior and Eclipse CodeWarrior10.x/KDS separately.

Original Attachment has been moved to: Multi-Targets-Project_Classic-CW-HCS12-v5_1.zip

Original Attachment has been moved to: Multi-Targets-Project_KDS-v3_2.zip

Attachments
Comments

Sometimes macro is enabled, but the editor still shows it grayed out. See solution here:

Fixing the Eclipse Index | MCU on Eclipse 

No ratings
Version history
Last update:
‎12-14-2021 01:18 AM
Updated by: