Remove debugging printf.

Update manual to reflect the new -U option.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@342 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
bdean 2003-08-24 18:05:46 +00:00
parent eecf43999d
commit 6183fc22a2
2 changed files with 56 additions and 17 deletions

View File

@ -405,6 +405,31 @@ Tells AVRDUDE to enter the interactive ``terminal'' mode instead of up-
or downloading files. See below for a detailed description of the or downloading files. See below for a detailed description of the
terminal mode. terminal mode.
@item -U @var{memtype}:@var{op}:@var{filename}[:@var{format}]
Perform a memory operation, equivalent to specifing the @option{-m},
@option{-i} or @option{-o}, and @option{-f} options, except that
multiple @option{-U} optins can be specified in order to operate on
mulitple memories on the same command-line invocation. The
@var{memtype} field specifies the memory type to operate on. The
@var{op} field specifies what operation to perform:
@table @code
@itemx r
read the specified device memory and write to the specified file
@itemx w
read the specified file and write it to the specified device memory
@itemx v
read the specified device memory and the specified file and perform a verify operation
@end table
The @var{filename} field indicates the name of the file to read or
write. The @var{format} field is optional and contains the format of
the file to read or write. See the @option{-f} option for possible
values.
@item -v @item -v
Enable verbose output. Enable verbose output.
@ -446,23 +471,33 @@ STK500 programmer connected to the default serial port:
@example @example
@cartouche @cartouche
% avrdude -p m128 -c stk500 -y -e -i m128diag.hex % avrdude -p m128 -e -U flash:w:diag.hex
avrdude: AVR device initialized and ready to accept instructions avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9702 avrdude: Device signature = 0x1e9702
avrdude: erasing chip avrdude: erasing chip
avrdude: erase-rewrite cycle count is now 52
avrdude: done. avrdude: done.
avrdude: reading input file "m128diag.hex" avrdude: performing op: 1, flash, 0, diag.hex
avrdude: input file m128diag.hex auto detected as Intel Hex avrdude: reading input file "diag.hex"
avrdude: writing flash (18130 bytes): avrdude: input file diag.hex auto detected as Intel Hex
18175 avrdude: writing flash (19278 bytes):
avrdude: 18176 bytes of flash written
avrdude: verifying flash memory against m128diag.hex: Writing | ################################################## | 100% 7.60s
avrdude: 19456 bytes of flash written
avrdude: verifying flash memory against diag.hex:
avrdude: load data flash data from input file diag.hex:
avrdude: input file diag.hex auto detected as Intel Hex
avrdude: input file diag.hex contains 19278 bytes
avrdude: reading on-chip flash data: avrdude: reading on-chip flash data:
18175
Reading | ################################################## | 100% 6.83s
avrdude: verifying ... avrdude: verifying ...
avrdude: 18176 bytes of flash verified avrdude: 19278 bytes of flash verified
avrdude done. Thank you. avrdude done. Thank you.
@ -477,14 +512,20 @@ programmer and save it in raw binary format in the file named
@example @example
@cartouche @cartouche
% avrdude -p m128 -c stk500 -f r -o m128diag.flash % avrdude -p m128 -e -U flash:r:diag.flash:r
avrdude: AVR device initialized and ready to accept instructions avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9702 avrdude: Device signature = 0x1e9702
avrdude: current erase-rewrite cycle count is 52 (if being tracked) avrdude: erasing chip
avrdude: done.
avrdude: reading flash memory: avrdude: reading flash memory:
131071
avrdude: writing output file "m128diag.flash" Reading | ################################################## | 100% 46.10s
avrdude: writing output file "diag.flash"
avrdude done. Thank you. avrdude done. Thank you.

2
main.c
View File

@ -1380,8 +1380,6 @@ int main(int argc, char * argv [])
for (ln=lfirst(updates); ln; ln=lnext(ln)) { for (ln=lfirst(updates); ln; ln=lnext(ln)) {
upd = ldata(ln); upd = ldata(ln);
fprintf(stderr, "%s: performing op: %d, %s, %d, %s\n",
progname, upd->op, upd->memtype, upd->format, upd->filename);
rc = do_op(pgm, p, upd, nowrite, verify); rc = do_op(pgm, p, upd, nowrite, verify);
if (rc) { if (rc) {
exitrc = 1; exitrc = 1;