Hi guys, I’ve can’t seem to get JTAG working on a custom LPC2148 board. Let me explain my setup so we’re all on the same page. I’m using the YAGARTO tool chain and OpenOCD debugger with the Eclipse IDE and on a win7 host OS. I bought the [Olimex ARM-USB-OCD JTAG programmer and [Olimex LPC-H2148 board from Sparkfun. I have some test code working on the header board (just blinking the LED with an interrupt routine). I loaded that on through the JTAG interface and am able to step through the code, set hardware breakpoints, etc so I know my tool chain and JTAG programmer are working.
Now, here’s the schematic of the board in question: http://ad7zj.net/files/fc_01.pdf When I power it up and attempt to talk to it through JTAG, I get an error saying the JTAG communication failed:
target remote localhost:3333
0x00000000 in _vectors ()
monitor sleep 500
force hardware breakpoints enabled
monitor arm7_9 force_hw_bkpts enable
monitor poll
target state: unknown
monitor flash probe 0
flash ‘lpc2000’ found at 0x00000000
monitor flash erase_sector 0 0 0
failed erasing sectors 0 to 0 (-304)
monitor flash write_image main.bin 0x0
error writing to flash at address 0x00000000 at offset 0x00000000 (-304)
monitor reset
JTAG communication failure, check connection, JTAG interface, target power etc.
trying to validate configured JTAG chain anyway…
Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Could not validate JTAG chain, exit
All other conditions are the same as when it was working on the header board; unplug the JTAG connector from the header board and plug it into my custom board. As far as I can tell, the JTAG interface is hooked up almost exactly as it is on the Sparkfun header board. I was able to load some test code on through the serial port using the FlashMagic utility, so it’s not like the processor is dead or something. I can see with a scope that the JTAG programmer is pulling the RESET line low when it tries to program. I’ve verified that P0.31 is high and P1.26 (RTCK) is pulled low during a reset as specified in the datasheet.
So, any ideas of what else to try from here? I appreciate any help in getting this working. Thanks,
Elijah](Header board for LPC2148 - DEV-00676 - SparkFun Electronics)](JTAG USB OCD Programmer/Debugger for ARM processors - PGM-07834 - SparkFun Electronics)