Hi,
I have built OpenOCD to debug my xscale platform by using Amontec JTAGkey-Tiny and Macraigor WIGGLER device. Now, I can debug my xscale if I use JTAGkey-Tiny. But I can not use OpenOCD with WIGGLER to debug xscale. It seems that debug handler always return error data and cause OpenOCD initialization fail. Below are part of its log.
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:1001 jtag_build_buffer(): fields[0].out_value: 0x10
Debug: jtag.c:1032 jtag_read_buffer(): fields[0].in_value: 0x01
Debug: bitbang.c:231 bitbang_execute_queue(): pathmove: 3 states, end in 3
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in 8
Debug: jtag.c:1032 jtag_read_buffer(): fields[0].in_value: 0x00
Warning: jtag.c:1074 jtag_read_buffer(): value captured during scan didn’t pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x06
Debug: jtag.c:1032 jtag_read_buffer(): fields[1].in_value: 0x00000000
Debug: jtag.c:1032 jtag_read_buffer(): fields[2].in_value: 0x00
Error: xscale.c:392 xscale_receive(): JTAG error while receiving data from debug handler
I am not sure that it is configure error or my xscale platform issue, but I can use GDB + Macrigor’s OCDremote + WIGGLER to debug my xscale platform. Below is my configure file for OpenOCD:
telnet_port 4444
gdb_port 3333
#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 10
jtag_nsrst_delay 200
jtag_ntrst_delay 200
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config srst_only srst_pulls_trst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 7 0x1 0x7f 0x7e
#target configuration
daemon_startup reset
#target
#target arm7tdmi
target xscale big run_and_halt 0 IXP42x 0x900
run_and_halt_time 0 30
Does anyone know what happen? Thanks in advance.
Best Regards,
chanchao[/code]