Hi,
I’m a new bie in ARM programming and OpenOCD is veeeery slow on my machine reguardless wether I’m debugging in RAM (about 300 bytes/s) or flashing (don’t remember exactly but I think around 700 bytes/s). I’ve tryed 2 different pods: IAR J-Link and usbprog and both are slow (usbprog is a little bit slower)… It takes a couple of mins to upload my code in RAM in the debugger… My target is the AT92sam7s-EK (with at91sam7s256 MPU). Here is my openocd.cfg:
---------------------------------- openocd.cfg (usbprog) -----------------------------------
telnet_port 4444
gdb_port 3333
gdb_memory_map disable
interface usbprog
jtag_speed 0
reset_config srst_only
Target is an AT91SAM7:
jtag newtap at91sam7s cpu -irlen 4 -ircapture 0x1 -irmask 0xf
The target
target create at91sam7s.cpu arm7tdmi -endian little -chain-position at91sam7s.cpu-variant arm7tdmi
at91sam7s.cpu configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
flash bank at91sam7 0 0 0 0 0
---------------------------------- openocd.cfg (J-Link) -----------------------------------
telnet_port 4444
gdb_port 3333
gdb_memory_map disable
interface jlink
jtag_speed 0
reset_config trst_and_srst srst_pulls_trst
Target is an AT91SAM7:
jtag newtap at91sam7s cpu -irlen 4 -ircapture 0x1 -irmask 0xf
The target
target create at91sam7s.cpu arm7tdmi -endian little -chain-position at91sam7s.cpu-variant arm7tdmi
at91sam7s.cpu configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
flash bank at91sam7 0 0 0 0 0
The script I use with GDB to upload and debug my code in RAM is:
---------------------------------- debug.script -----------------------------------
AT91SAM7Sxx debug programming script.
target remote :3333
set remotetimeout 1000
monitor gdb_breakpoint_override hard
load
I have the hardware setup at work but I can post the output of openOCD tomorrow if needed… Does anyone have an idea why opne OCD is so slow?
Thanx in advance