Hi all,
I have an Olimex LPC-E2214 and Olimex USB OpenOCD JTAG TINY. I installed their CD stuff with openOCD, Yagarto GCC, Eclipse and LPC-2294 examples.
I’ve seen similar postings and have tried several things they suggested, including slowing the Jtag speed, etc. Nothing seems to work. Some of the commented out stuff in the config file are the things I have tried so far.
I suspect that it could be the example code, which is really for the 2294 when the board is a 2214 with 1 MB Flash, 1 MB RAM.
I’ve also read about openOCD version issues.
As far as the jumpers on the board: the DBG_E jumper is IN, Boot 0 and Boot 1 are 11 (internal), BSL is OUT, JRST is OUT (not using RS-232).
Also, I cannot power the board from USB for some reason, even if I select the ext/usb jumper to USB. The power LED gives a quick blink then goes off. I’m powering it from an external power supply.
Sometimes the scan returned below is 0x3F, instead of 0x00.
Here’s the error messages:
Info: openocd.c:93 main(): Open On-Chip Debugger (2007-09-05 09:00 CEST)
Error: jtag.c:1253 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1440 jtag_init(): trying to validate configured JTAG chain anyway…
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1448 jtag_init(): Could not validate JTAG chain, exit
Here’s the config file:
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc “Olimex OpenOCD JTAG TINY A”
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15BA 0x0004
jtag_speed 20
#jtag_nsrst_delay 500
#jtag_ntrst_delay 500
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst separate
#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
#target arm7tdmi
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
#target_script 0 reset oocd_flash2138.script
working_area 0 0x40000000 0x2000 nobackup
#working_area 0 0x40000000 0x40000 nobackup
#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14746 calc_checksum
#flash bank lpc2000 0x0 0x7D000 0 0 0 lpc2000_v2 14756 calc_checksum
For more information about the configuration files, take a look at:
http://openfacts.berlios.de/index-en.ph … p+Debugger
Please help!
Thanks,
Gil