- Tue Aug 08, 2006 2:57 am
#16886
I'm trying to use an Amontec JTAGkey with various target boards (mainly SAM7 and S3C2410 (arm920t). However, I always get the same error message:
----
$ sudo ./openocd -d
Info: openocd.c:82 main(): Open On-Chip Debugger (2006-08-01 12:00 CEST)
Debug: jtag.c:1180 jtag_init():
80 58 5b 85
Debug: ftdi2232.c:96 ftdi2232_speed(): 86 08 00
Debug: jtag.c:240 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1070 jtag_reset_callback():
Debug: jtag.c:240 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1070 jtag_reset_callback():
Error: jtag.c:1122 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch
---
This is OpenOCD SVN rev. 82 on debian x86_64, using libftdi2232 (free).
Interestingly the error (and the hex dump bytes) are exactly the same, no matter whether the target board is powered up or not, connected or disconnected.
My config file for the SAM7:
----
telnet_port 4444
gdb_port 3333
#interface
interface ftdi2232
ftdi2232_vid_pid 0x0403 0xcff8
jtag_speed 8
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config srst_only
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
target arm7tdmi little reset_halt 0 arm7tdmi
daemon_startup reset
working_area 0 0x40000000 0x4000 nobackup
flash bank at91sam7 0 0 0 0 0
----
Interestingly, if I use the same OpenOCD binary with different configuration and a wiggler, it works perfectly fine.
Any ideas?
----
$ sudo ./openocd -d
Info: openocd.c:82 main(): Open On-Chip Debugger (2006-08-01 12:00 CEST)
Debug: jtag.c:1180 jtag_init():
80 58 5b 85
Debug: ftdi2232.c:96 ftdi2232_speed(): 86 08 00
Debug: jtag.c:240 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1070 jtag_reset_callback():
Debug: jtag.c:240 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1070 jtag_reset_callback():
Error: jtag.c:1122 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch
---
This is OpenOCD SVN rev. 82 on debian x86_64, using libftdi2232 (free).
Interestingly the error (and the hex dump bytes) are exactly the same, no matter whether the target board is powered up or not, connected or disconnected.
My config file for the SAM7:
----
telnet_port 4444
gdb_port 3333
#interface
interface ftdi2232
ftdi2232_vid_pid 0x0403 0xcff8
jtag_speed 8
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config srst_only
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
target arm7tdmi little reset_halt 0 arm7tdmi
daemon_startup reset
working_area 0 0x40000000 0x4000 nobackup
flash bank at91sam7 0 0 0 0 0
----
Interestingly, if I use the same OpenOCD binary with different configuration and a wiggler, it works perfectly fine.
Any ideas?