I have a single project that I am trying to configure in such a way that it is flexible for more than one CPU.
In ProcessorExpert I have a second CPU, and two configurations that I can switch between and I am happy with all of that.
In CodeWarrior I am using the "PEcfg_*" macros (and inclusion of cpu.h) to determine which processor is being targetted.
What I am trying to do is have a BUILD configuration in CodeWarrior that I can switch between the two processors.
With Build Config #1 I would include in the project the folder "Generated_Code_cpu1", and in Build Config #2 I would include the folder "Generated_Code_cpu2".
I know I can set the ProcessorExpert generated code output directory in the CodeWarrior build configuration, BUT is there anyway to set the ProcessorExpect configuration ?
For instance if I select CodeWarrior build config #1 the tools will be setup for CPU#1, and the ProcessorExpert Generated_Code output folder will be set to "Generated_Code_cpu1". However if within ProcessorExpert the selected configuration is "CPU2" then it isn't going to work and I'll end up with code for CPU2 being generated in the "Generated_Code_cpu1" directory.
Am I missing something on how to tie together the CodeWarrior build configuration and the ProcessorExpert configuration settings, or does the developer have to remember to switch both settings manually?