I want to ask something about the ARM project.
I’m still a newbie in this kind of project(this is my first time using an ARM core).
For my first project, I use LPC2104. In this project, I also use the Yagarto ARM tool, Eclipse and the OpenOCD which is included in the YAGARTO website.
I got a problem while I’m using the openOCD. I use a JTAG(oocdlink) that is based on ftd2232. When I connected the JTAG in my ARM board through the 20pins connector and via the USB to my notebook (I used Windows Vista), and start the configuration for the JTAG, I got an error. It says like this:
Open On-Chip Debugger (2008-06-19 19:00) svn: 717
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk
Info: options.c:50 configuration_output_handler(): jtag_speed: 3, 3
Error: jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check con
nection, JTAG interface, target power etc.
Error: jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway…
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
this is my config:
daemon configuration
telnet_port 4444
gdb_port 3333
tell gdb our flash memory map
and enable flash programming
gdb_memory_map enable
gdb_flash_program enable
interface ft2232
ft2232_device_desc “OOCDLink A”
ft2232_layout oocdlink
ft2232_vid_pid 0x0403 0xBAF8
jtag_speed 3
jtag_nsrst_delay 200
jtag_ntrst_delay 200
reset_config trst_and_srst
jtag_device 4 0x1 0xf 0xe
#target configuration
daemon_startup reset
#target
target arm7tdmi little reset_run 0
run_and_halt_time 0 30
working_area 0 0x40000000 0x10000 nobackup
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14765 calc_checksum
flash bank cfi 0x80000000 0x400000 2 2 0
I don’t know whether my configuration is right or not.
I use this config based on the openocd documentation itself and from the forum.
maybe somebody can help me to solve my problem…
And I want to ask something…
In the openocd documentation, It says the vid_pid is the vendor and product ID of the ftdi ft2232 device.
How do I know the id of my device???
or the id is the same with the other device(with the same layout)??? :?
My another question is about the jtag_device configuration…
from the openocd documentation, jtag_device config has this parameter :
from the documentation, IR length must be 4 for ARM7/9s
IR capture 0x1, IR mask is 0xf. But, for the IDcode, what kind of number must be written???
I wrote 0xe in my config file just for try and error…(I already change the number several times):)But it still give the error… :lol:
thx a lot!