Dear Madam or Sir,
we are using different controllers (e.g STM32F101x and STM32F2xx). The Keil IDE supports the programmer by using "multiple targets". For different targets I can choose different controllers, but how can I add files to a specific target without mapping it to the other target. Especially the controller-specific files should be added only to one target (e.g Startup and Header files).
Does anybody has a solution for that problem?
You can specify that specific source files shouldn't be processed when building the target.
Last time I tried, you couldn't have 2 files with the same name in 1 project - not even if they're in different folders.
eg, you couldn't have:
project\target1\config.c project\target2\config.c
It had to be
project\target1\config1.c project\target2\config2.c
Or whatever
Also, there was no way to maintain global options common to multiple targets.
Has this now improved?
I doubt it. It strikes me that this would be hard to pull off, the libraries and hardware have some annoying differences that you'd spend all your time doing abstraction work, and regression testing. I'd find it less error prone to maintain two trees/projects and merge.
The USB library examples look to support multiple boards/chips.
BTW Has anyone come across any third-party project management tools for Keil, that can split, combine or merge project files? Or import/export/translate project descriptions from other chains?
Thank you for your reply.
I found the option to remove/add a file from a traget: In "Project Window" right-click on the file and run "Options for file...". Then check or uncheck the option "Include in target build"
That's it!