mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 06:55:27 +00:00
Optimize reading and writing for the STK500 programmer if the part
supports paged reads and writes. This greatly decreases the program/verify time from about 4.5 minutes down to about 10 seconds in a 12K program size test case. Print out the hardware and firmware version for the STK500 if verbose is enabled. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@161 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
16
main.c
16
main.c
@@ -735,14 +735,6 @@ int main(int argc, char * argv [])
|
||||
p = avr_dup_part(p);
|
||||
v = avr_dup_part(p);
|
||||
|
||||
if (verbose) {
|
||||
avr_display(stderr, p, progbuf, verbose);
|
||||
fprintf(stderr, "\n");
|
||||
pinconfig_display(progbuf);
|
||||
}
|
||||
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
if (strcmp(pgm->type, "PPI") == 0) {
|
||||
verify_pin_assigned(PIN_AVR_RESET, "AVR RESET");
|
||||
verify_pin_assigned(PIN_AVR_SCK, "AVR SCK");
|
||||
@@ -755,6 +747,14 @@ int main(int argc, char * argv [])
|
||||
*/
|
||||
pgm->open(pgm, port);
|
||||
|
||||
if (verbose) {
|
||||
avr_display(stderr, p, progbuf, verbose);
|
||||
fprintf(stderr, "\n");
|
||||
pinconfig_display(progbuf);
|
||||
}
|
||||
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
exitrc = 0;
|
||||
|
||||
rc = pgm->save(pgm);
|
||||
|
Reference in New Issue
Block a user