amontec jtagkey on linux 64bit

what do I need to make amontec jtagkey works on linux 64bit with openocd?

thanks

What is not working ?

What is your target and configuration.

Are you using eclipse, gdb or telnet interface ?

Do you have any error messages, debug output from running openocd with -d3 flag.

Best regards,

Magnus

mlu:
What is not working ?

What is your target and configuration.

Are you using eclipse, gdb or telnet interface ?

Do you have any error messages, debug output from running openocd with -d3 flag.

No error. I'm only experimenting that all operation are too slow.

I use OpenOCD r1836, amontec jtagkey-tiny and open source libFTDI 0.16. All runs under ubuntu linux 8.10 64bit.

My PC has core 2 Q8300 and 4GB RAM.

the dumps are too big (more than 190KB), here is final part

Debug: 2212 38182 at91sam7.c:285 at91sam7_flash_command(): Flash command: 0x5a004601, flash bank: 1, page number: 70
Debug: 2213 38182 arm7_9_common.c:2091 arm7_9_read_memory(): address: 0xffffff68, size: 0x00000004, count: 0x00000001
Debug: 2214 38196 target.c:1190 target_read_u32(): address: 0xffffff68, value: 0x00000401
Debug: 2215 38196 at91sam7.c:260 at91sam7_wait_status_busy(): status[0]: 0x401
Debug: 2216 38196 at91sam7.c:1040 at91sam7_write(): Write flash bank:0 page number:70
User : 2217 38196 command.c:380 command_print(): wrote 18136 byte from file img.bin in 16.654846s (1.063410 kb/s)

With a very old version of OpenOCD on windows (using ftdi driver provided by amontec) I can write more than 9KB/s.

It could be libftdi that is reported to be slow

openocd manual:
In general, the D2XX driver provides superior performance (several times as fast), but has the draw-back of being binary-only - though that isn’t that bad, as it isn’t a kernel module, only a user space library.

When using the Amontec JTAGkey, you have to get the drivers from the Amontec homepage (http://www.amontec.com), as the JTAGkey uses a non-standard VID/PID.

but I cannot find any driver for linux 64bit on amontec site

Another issue: when I shutdown I need to unplug/replug jtagkey and turn off/on power supply of target, otherwise is impossible to reconnect. why thi strange behaviour?

thanks

Yea, 1kB/s is too slow

libftdi is capable of flashing targets at 20kB/s (STM32) , so I do not think that is the problem.

I could be changes in the driver or some settings such as work_area, fast memory access or dcc downloads

It can be that the outputs from the ft2232 chips that are used for reset are pulled low by the driver on disconnect.

Regards

Magnus