From 4df01a2189c99e3585ee234298da5adf8f0f7752 Mon Sep 17 00:00:00 2001 From: bdean Date: Thu, 4 Sep 2003 01:01:40 +0000 Subject: [PATCH] Add an extended example of using the -U option to update the flash, eeprom, efuse, hfuse, and lfuse on a single command line. Much of the output had to be ommitted from the example since the texi commands for formatting the example don't allow page breaks within the example. If someone knows a better way to format it, please feel free to do so. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@361 81a1dc3b-b13d-400b-aceb-764788c761c2 --- doc/avrdude.texi | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/doc/avrdude.texi b/doc/avrdude.texi index eebdd862..31c2b2af 100644 --- a/doc/avrdude.texi +++ b/doc/avrdude.texi @@ -596,6 +596,55 @@ avrdude done. Thank you. @end cartouche @end example +@noindent +Using the default programmer, download the file @code{diag.hex} to +flash, @code{eeprom.hex} to EEPROM, and set the Extended, High, and Low +fuse bytes to 0xff, 0x89, and 0x2e respectively: + +@example +@cartouche + +% avrdude -p m128 -U flash:w:diag.hex \ +> -U eeprom:w:eeprom.hex \ +> -U efuse:w:0xff:m \ +> -U hfuse:w:0x89:m \ +> -U lfuse:w:0x2e:m + +avrdude: AVR device initialized and ready to accept instructions + +Reading | ################################################## | 100% 0.03s + +avrdude: Device signature = 0x1e9702 +avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed + To disable this feature, specify the -D option. +avrdude: erasing chip +avrdude: reading input file "diag.hex" +avrdude: input file diag.hex auto detected as Intel Hex +avrdude: writing flash (19278 bytes): + +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: + +Reading | ################################################## | 100% 6.84s + +avrdude: verifying ... +avrdude: 19278 bytes of flash verified + +[ ... other memory status output skipped for brevity ... ] + +avrdude done. Thank you. + +% +@end cartouche +@end example + + @c @c Node