Wed 11 Sep 2013 04:06:58 PM UTC, comment #2:
Since the byte read functions of the more sophisticated
programmer types (JTAGICEmkII, STK500v2, JTAGICE3) use a
page cache, this should be no longer an issue.
Dumping 1 KiB of flash contents of an ATmega128RFA1 in
terminal mode is now seemingly instantaneous (no noticable
response time at all).
|
Mon 29 Jun 2009 03:11:42 PM UTC, original submission:
I really love the terminal mode. I used to have a DIY parport cable, and dumping Flash content was blazingly fast, I used it often. However I have now purchased a Dragon to replace my DIY cable, and it appears that dumping a single tiny litle KB of data takes... 60 seconds ! IOW, this feature has become useless :-(
I enquired a lot on avr-chat, and it would seem that the problem is due to avrdude reading Flash bytes one at a time, and that although this is fast over parport, it's is extremely inefficient over USB, because of the very nature of USB.
So I think this could be fixed simply by NOT reading bytes one by one, but instead read a block of for example 2KB (which takes about one second, this is fast enough), regardless of how many bytes the user asked for. So if, say, I ask for 128 bytes, avrdude reads 2KB in one go, in order to retrieve data quickly, then displays only the first 128 bytes (or whatever the user asked for) on the screen.
This way the user gets to see the data very fast, no matter if he asked for just a few bytes, or a few KB's.
|