On Mon, Jun 27, 2011 at 6:13 PM, Tom Schouten <t...@zwizwa.be> wrote: > Hi, > > I'm trying to figure out why Flash uploads are apparently slow on the > AT91SAM7 target with an Olimex ARM-USB-OCD adapter. This is with a OpenOCD > from git of early this week. > > These are the speeds I get with different JTAG clock settings: > > 1MHz -> 5KB/sec > 2MHz -> 7KB/sec > 6MHz -> 8KB/sec
Have you tried to enable dcc downloads and fast memory access? But the speed is probably about right. http://comments.gmane.org/gmane.comp.debugging.openocd.devel/13635 > Comparing this to something like SAM-ICE on Windows this seems really slow. > (The SAM-ICE device says max 720KB/secs, gdb reports 873KB/sec which is > probably a bit off but it's still noticably a lot faster than the Olimex.) > > Is there a known reason why this difference is so large? > ARM-USB-OCD hardware? > Adaptive clocking? (not on ARM-USB-OCD, but supported on SAM-ICE). > Some other issue related to OpenOCD itself? I think all three are related with probably OpenOCD contribute the major portion. You can use your SAM-ICE with OpenOCD (enable J-link support) and then compare the results. I do not use AT91SAM7. Last time I tried to use LPC-2148 with J-Link and the speed is about 44KB/sec. http://permalink.gmane.org/gmane.comp.debugging.openocd.devel/13920 -- Xiaofan _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development