Help: Chameleon/JTAG Accelerator w/OpenOCD r98

Hi,

I’m still trying to get the Chameleon POD working in JTAG Accelerator mode with latest OpenOCD. I have used Amontec’s utility to load “amontec_jtag_accelerator_051211.amtsvf” into the unit. It seems to program without any errors. I have modified the LPC2103 script for OpenOCD, taken from: http://www.ixbat.de/index.php?page_id=95 . My config file is shown below.

When I invoke OpenOCD I keep getting:

$ openocd -f lpc2103_openocd_amt.cfg

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-09-07 20:00 CEST)

Warning: amt_jtagaccel.c:479 amt_jtagaccel_init(): No parport port specified, us

ing default ‘0x378’ (LPT1)

Error: amt_jtagaccel.c:184 amt_wait_scan_busy(): amt_jtagaccel timed out while waiting for end of scan, rtck was disabled

Can anyone using the POD in JTAG Accelerator mode shed some light? I’m really getting frustrated here. I tried using OpenOCD to upload the chameleon config to the POD but that didn’t seem to do anything. I can get OpenOCD to talk to it in Wiggler mode, but I specifically got the POD to use for the acceleration purpose.

Here’s my config file:

#daemon configuration

telnet_port 4444

gdb_port 3333

#interface

interface amt_jtagaccel

jtag_speed 5

#use combined on interfaces or targets that can’t set TRST/SRST separately

reset_config trst_and_srst trst_pulls_srst

#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_init 0 arm7tdmi-s_r4

run_and_halt_time 0 30

working_area 0 0x40000000 0x2000 nobackup

#flash configuration

flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum

#flash bank cfi 0x80000000 0x400000 2 2 0

Maybe you have to try different BIOS settings for your PC’s parallel port - try EPP, ECP, and variations of these available in your Bios setup. The “timeout waiting for end of scan” means that an EPP transaction didn’t complete.

What operating system do you use?

Regards,

Dominic

Hi Dominic,

Thanks for the info. I went into the BIOS and set parallel port to “EPP” and “Ver 1.9” and I can talk with Chameleon POD! I am using Win2000.

However, when I debug my basic ARM blinking LED program (with Wiggler setup or with JTAG Accelerator) I get a lot of:

Error: arm7_9_common.c:1771 arm7_9_read_memory(): memory read caused data abort

Error: arm7_9_common.c:1771 arm7_9_read_memory(): memory read caused data abort

Error: arm7_9_common.c:1771 arm7_9_read_memory(): memory read caused data abort

and after two or three single-steps I loose the debugger connection with “Cannot find bounds of current function” .

Is this an error with my Eclipse/compiler setup, or an ARM/OpenOCD issue?

Hi,

glad you got it working. The JTAG Accelerator is a very powerful configuration and faster than the FT2232 solutions.

There was a very similar question today in the LPC2000 group, where I’ve already replied: http://tech.groups.yahoo.com/group/lpc2 … sage/19410

Just saw a bug in my reply: There’s not a general problem with source-level debugging empty for-loops, but a problem with stepping these lines - what worked for me is placing a breakpoint after the delay loop, and using continue to step over it.

Regards,

Dominic