while downloading code with JTAG debugger it gives message "JTAG Device Chain error". How to remove this error?
Depends really on the device. See the following articles:
http://www.keil.com/support/docs/3245.htm http://www.keil.com/support/docs/2993.htm