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.
Regards,
Rohit
See i.e.: "Expression rules in scatter files":
http://www.keil.com/support/man/docs/armlink/armlink_pge1362075691273.htm