I am using c51v957 my setup for generating hex file is correct and i am getting hex file after i rebuild but that file is blank i mean that file has no effect on my hardware please help me out.
"that file is blank i mean that file has no effect on my hardware"
Err ... wait a minute! I think you jumping to an unwarranted conclusion there!
It would be very easy to tell whether the file was actually empty or not:
1. look at its size
2. open it in a text editor.
It seems very unlikely that a successful build would actually generate an empty hex file - unless your project contains no code!