I am trying to get the JTAG working with my LPC2148 chip. I have all the relevant JTAG pins connected like the Olimex LPC-E2294 dev board. I am using the Amontec JTAGKey. I get the following error when I try to connect to arm-elf-insight:
Please upgrade to the latest version of the OpenOCD available from SVN. It contains additional debug statements that print out the values captured while checking the scan chain. A failed scan chain validation means that some very basic JTAG operations that only use TCK, TMS, TDI and TDO (but none of the reset lines) have failed.
I found the r82 version of openocd…and now i have found that the problem is somewhere on my board!
When i use a CRO lead or even a multimeter lead and touch the Rx pin for the RS232 (pins 34 and 21), the LED output turns on and off intermittently on pin 58 of my LPC2148 chip!
So after poking around the board for a while i must’ve done something and openocd-fdt2xx -f lpc2xxx_jtagkey.cfg worked!
I have used 10k pullups and pulldowns on the following pins:
TRST - 10k pullup
TDI - 10k pullup
TMS - 10k pullup
TCK - 10k pulldown
RTCK - 10k pulldown
TDO - 10k pullup
RST - connected to RESET pin of ARM chip which has a 10k pullup
My Amontech JTAGKey works after i measure the voltage with a multimeter between the RST and TDO pin…anytime before this I get that jtag_validate_chain(): mismatch error!
Please make sure to provide a regulated VREF (from 1.4V to 5V) on the pin 1 of the 20-pin ARM header. In fact, the actual JTAGkey emulator use the VREF to power the on-board IO interface.
NOTE: Amontec is working on a JTAGkey without charging VREF. This will be great for debugging in real Embedded applications (on BAT !)