- Thu Aug 10, 2006 4:44 pm
#17015
I just got an Olimex ARM-USB-OCD and have high hopes.
But right now I'm getting:
Info: openocd.c:73 main(): Open On-Chip Debugger (Revision 62)
Error: jtag.c:1091 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch
When trying to start openocd from Eclipse. I get the same problem running it from the command prompt (WinXP). And I get the same problem when the JTAG cable is disconnected at the board (LPC2129 from Olimex). But I'm pretty sure there is communications happening between the PC and the ARM-USB-OCD as the unit's green led turns amber when this happens.
Here's the configuration file
Many Thanks,
Karim
But right now I'm getting:
Info: openocd.c:73 main(): Open On-Chip Debugger (Revision 62)
Error: jtag.c:1091 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch
When trying to start openocd from Eclipse. I get the same problem running it from the command prompt (WinXP). And I get the same problem when the JTAG cable is disconnected at the board (LPC2129 from Olimex). But I'm pretty sure there is communications happening between the PC and the ARM-USB-OCD as the unit's green led turns amber when this happens.
Here's the configuration file
Code: Select all
And here's the debug output
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ftd2xx
ftd2xx_device_desc "Olimex OpenOCD JTAG A"
ftd2xx_layout olimex_jtag
#ftd2xx_vid_pid 0x0403 0xcff8
ftd2xx_vid_pid 0x15ba 0x0003
jtag_speed 2
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target configuration
daemon_startup reset
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
#target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
target arm7tdmi little run_and_init 0 arm7tdmi-s_r4
run_and_halt_time 0 30
target_script 0 reset oocd_flash2106.script
working_area 0 0x40000000 0x4000 nobackup
#flash configuration
#flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
Code: Select all
What should I do next?Debug: jtag.c:1145 jtag_init():
Debug: ftd2xx.c:894 ftd2xx_init(): current latency timer: 2
Debug: ftd2xx.c:1065 olimex_jtag_init(): 80 08 1b
Debug: ftd2xx.c:1109 olimex_jtag_init(): 82 0b 0f
Debug: ftd2xx.c:191 ftd2xx_speed(): 86 02 00
Debug: jtag.c:229 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1039 jtag_reset_callback():
Debug: jtag.c:229 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1039 jtag_reset_callback():
Error: jtag.c:1091 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch
Many Thanks,
Karim