How can one create debug/release configuration in Keil uVision 5.14? I have single target in my project and I want to easily switch compiler optimization, pin mappings on my MCU etc by switching between debug and release configuration.
if I want to add e.g. new preprocessor include path, do I have to add it to every single target my project contains manually?
I'm afraid you will. But at two targets that's surely a manageable amount of extra effort. After all the whole point of having multiple targets is that they can have different configurations. The price you pay for that is that they will have different configurations, and it's up to you to make them the same where you need them to be.
Now more modern IDEs like Eclipse go to great lengths to distinguish between settings that are synchronized between different build targets, and those which have been split up. That's a powerful feature, but it does also make those IDEs a good deal harder to use. Keil kept uVision simpler than that.
As far as having a great many include paths is concerned, it can be easier to just collect them all into a much smaller set of directories, possibly just a single one.
Thank you. That's all I wanted to know.