I want to do the configuration that on the time of building the project, the parameter "TARGET_APP=1" or "TARGET_APP=2" will be passed and accordingly set the text and data segments from .scf file.
So in .scf file there would be if condition to check TARGET_APP variable and it will set range of these text and data segments.
See i.e.: "Expression rules in scatter files":
View all questions in Keil forum