On 2010-10-18 21:53, Andreas Fritiofson wrote:
>/ Well, that's BS. The STM32 flash has a nominal programming time of
/>/ 52.5µs per 16 bits. So the theoretical max speed anyone can achieve is
/>/ roughly 37.2 KiBytes/s. If you see claims of speeds way above that
/>/ they're either lies, load-to-ram figures or a mixup in units.
/
That's the screenshot
http://obrazki.elektroda.net/56_1286356404.jpg
>/ That said, I think it should be possible to crank up the STM32 flash
/>/ programming speed in OpenOCD by at least a factor of two. I don't know
/>/ what the bottleneck is, but like you I have concluded that JTAG
/>/ frequency is not the major issue here. My guess is that the
/>/ programming algorithm we use might be quite inefficient. USB latency
/>/ might play a role but with double buffering and other tricks in the
/>/ algorithm the latency shouldn't be a limiting factor.
/
That would be very cool to tune OpenOCD up!
That's a real good point for Rowley Crossworks
http://www.rowley.co.uk/arm/index.htm and Amontec JTAGkey Series
http://www.amontec.com . Note, with the use of Amontec JTAGkey-2 based
on high-speed USB, Rowley Crossworks becomes still a lot faster since
the USB latency go form 1ms to 125us.
For the OpenOCD, we know there are some optimizations do be done on the
software to accelerate the USB JTAG cable.
Could you please let me know the same as
http://obrazki.elektroda.net/56_1286356404.jpg
but for OpenOCD without and with the debug output -d3. (the debug output
could add some delay ;-) )
The debug output file could help to know how many times the JTAG_EXECUTE
is done from OpenOCD. Also, this could let us know if and where we could
remove JTAG_EXECUTE for optimization of the OpenOCD using USB JTAG Cable.
Removing the effect of the USB latency is a real challenge, and it was a
challenge from the begin of OpenOCD in 2004.
The advantage of USB JTAG Dongle could make your debug interface at
really low cost (as tha Amonte JTAGkey Tiny @ €29.-) regarding Embedded
System running OpenOCD on an external processor @ €750.- .
Also, having low cost USB JTAG solution helped and help to have more and
more OpenOCD developers from 2004.
* For me, the low cost USB JTAG solutions is the only reason of the
OpenOCD success. *
We could speed-up OpenOCD as fast as Rowley Crossworks, for sure !
Regards,
Laurent
http://www.amontec.com
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development