I changed the script so many times. But it always result in this problem.
Heres my config script. Perhaps there is something wrong ?
#daemon configuration
telnet_port 4444
gdb_port 3333
daemon_startup reset
#interface
interface ftd2xx
ftd2xx_device_desc "Amontec JTAGkey A"
ftd2xx_layout jtagkey
ftd2xx_vid_pid 0x0403 0xcff8
jtag_speed 0
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst trst_open_drain srst_open_drain
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target <type> <endianness> <startup mode> <chain position> <variant>
target arm920t little run_and_init 0
target_script 0 reset flash.script
# check if working area is in allowed part of internal SRAM (Stack...)
working_area 0 0x203EFF 0x0100 nobackup
# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger