Download to SRAM very slow with Amontec Jtagkey+OpenOCD

hello,

I’m debugging an AT91sam7x256 target with a jtagkey from Amontec under eclipse, using openOCD, and downloading a program into SRAM (0x200000) takes a very long time (GDB reports a transfer speed of 490 bytes/second) … it sometime happened that I got a better speed (13KB/S) but I don’t understand why, the binary was the same.

I’m running the usbmassstorage demo from ATMEL. The demo is working, I have found a device with 34KB capacity (once formatted : 14KB) and succeeded to copy a file on it. (demo program must be running into SRAM to have the usb device into Flash)

any idea ?

compared to this, flashing is quite normal.

thanks

Hi ,

I have the same problem.

Did you found the solution ?

Hello,

have you setup the CPU to 48MHz before you download

the program into the SRAM?

Take a look at my example here:

http://www.yagarto.de/download/yagarto/SAM7X256Test.zip

sam7x256_reset_oocd.script will setup the PLL.

Regards,

mifi

Hi Mifi,

I run your jtagkey.cfg with reset script, but the speed still the same ,

about ~500 bytes/s.

When i config jtag speed to /35, i reech 5 kbyte/s

It is the faster download speed i can create.