Amontec Chameleon and xsvf

Hi,

I am trying to program Chameleon with .amtsvf files from Amontec download area. I can successfuly program it using win32 program from Amontec. But with openocd under Linux I get the following:

Info: server.c:67 add_connection(): accepted ‘telnet’ connection from 0

Debug: xsvf.c:267 handle_xsvf_command(): XREPEAT

Debug: xsvf.c:380 handle_xsvf_command(): XENDIR

Debug: xsvf.c:397 handle_xsvf_command(): XENDDR

Debug: xsvf.c:362 handle_xsvf_command(): XSTATE

Debug: jtag.c:247 jtag_call_event_callbacks(): jtag event: 1

Debug: jtag.c:1097 jtag_reset_callback():

Debug: xsvf.c:170 handle_xsvf_command(): XSIR

Error: bitbang.c:54 bitbang_end_state(): BUG: -1210724324 is not a valid end state

(actualy I added BUG if state seems out of range - otherwise it just SEGFAULTs when using this state as index)

Maybe I am doing something wrong ?

My openocd configuration:

telnet_port 4444

gdb_port 3333

interface parport

parport_cable chameleon

jtag_speed 0

jtag_device 5 0x01 0x1f 0x01

telnet command I use for running SVF:

xsvf 0 amontec_jtag_accelerator_051211.amtsvf

I have the same problem.

Please, does anybody have a solution ?

Thanks

My chameleon.cfg:

#daemon configuration

telnet_port 4444

gdb_port 3333

#interface

interface parport

parport_port 0x378

parport_cable chameleon

jtag_speed 8

#jtag scan chain

format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)

jtag_device 5 0x01 0x1f 0x01

The error occur when y execute this command:

user@g-deon:~$ telnet localhost 4444

Trying 127.0.0.1…

Connected to localhost.localdomain.

Escape character is ‘^]’.

Open On-Chip Debugger

xsvf 0 /home/user/arm-src/amontec_jtag_accelerator_051211.amtsvf

And the gdb bt is:

(gdb) c

Continuing.

Debug: xsvf.c:267 handle_xsvf_command(): XREPEAT

Debug: xsvf.c:380 handle_xsvf_command(): XENDIR

Debug: xsvf.c:397 handle_xsvf_command(): XENDDR

Debug: xsvf.c:362 handle_xsvf_command(): XSTATE

Debug: jtag.c:254 jtag_call_event_callbacks(): jtag event: 1

Debug: jtag.c:1103 jtag_reset_callback():

Debug: xsvf.c:170 handle_xsvf_command(): XSIR

Program received signal SIGSEGV, Segmentation fault.

bitbang_end_state (state=2815197212) at bitbang.c:46

/home/user/arm-src/openocd/trunk/src/jtag/bitbang.c:46:1895:beg:0x80650c9

(gdb) bt

#0 bitbang_end_state (state=2815197212) at bitbang.c:46

#1 0x08065514 in bitbang_execute_queue () at bitbang.c:218

#2 0x080613bf in jtag_execute_queue () at jtag.c:1080

#3 0x08049aae in handle_xsvf_command (cmd_ctx=0x8082cc8, cmd=0x80829b8 “xsvf”, args=0xafec4080, argc=2) at xsvf.c:194

#4 0x08066fd6 in command_run_line (context=0x8082cc8, line=0x8082f44 “xsvf 0 /home/user/arm-src/amontec_jtag_accelerator_051211.amtsvf”) at command.c:355

#5 0x0806845e in telnet_input (connection=0x8082c98) at telnet_server.c:256

#6 0x08067d86 in server_loop (command_context=0x8082008) at server.c:363

#7 0x0804931f in main (argc=5, argv=Cannot access memory at address 0x5

) at openocd.c:124

(gdb)