I alway receive FAILURE NOTICE if I mail to openocd-developmemt, so I post here.
Versrion later than 891 will have this problem.
Debug Log of IAR:
Sun Aug 10 13:32:48 2008: Loaded macro file: D:\ProfessionalTools\IAR Systems\ARM\config\flashloader\NXP\FlashNXPLPC512k.mac
Sun Aug 10 13:32:50 2008: 9604 bytes downloaded and verified (5.88 Kbytes/sec)
Sun Aug 10 13:32:50 2008: Loaded debugee: D:\ProfessionalTools\IAR Systems\ARM\config\flashloader\NXP\FlashNXPLPC512k.out
Sun Aug 10 13:32:50 2008: Target reset
Sun Aug 10 13:32:51 2008: Fatal error: Failed to receive packet
Session aborted!
Sun Aug 10 13:32:53 2008: Non-zero or missing exit code.
Sun Aug 10 13:32:54 2008: Warning: Code still contains old breakpoints
Log of OpenOCD:
Info: accepting 'gdb' connection from 0
Warning:memory write caused data abort (address: 0x00000008, size: 0x4, count: 0x1)
Warning:memory write caused data abort (address: 0x00000008, size: 0x4, count: 0x1)
target state: halted
target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x200000d3 pc: 0x00000008
Warning:negative reply, retrying
Warning:negative reply, retrying
Warning:negative reply, retrying
Info: dropped 'gdb' connection
This problem is very strange, if I comment out LOG_USER in the armv4_5_arch_state function in file armv4_5.c, everything will be OK.
This function is called by log_target_callback_event_handler. If I comment out in this function, it will also be OK.
Log of OpenOCD(Remove LOG_USER in armv4_5_arch_state):
Info: accepting 'gdb' connection from 0
Warning:memory write caused data abort (address: 0x00000008, size: 0x4, count: 0x1)
Warning:memory write caused data abort (address: 0x00000008, size: 0x4, count: 0x1)
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted
target state: halted