From eaf0d89c6a20fa978b919fd0719c0d4e5e0f0195 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Tue, 23 May 2023 23:32:28 +0200 Subject: [PATCH] Add flash strings example --- src/doc/avrdude.texi | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/doc/avrdude.texi b/src/doc/avrdude.texi index 3b3d6c51..344c59d2 100644 --- a/src/doc/avrdude.texi +++ b/src/doc/avrdude.texi @@ -1665,7 +1665,7 @@ Execute multiple terminal mode commands separated by semicolons: @cartouche % echo 'write eeprom 0 "Bonjour"; write ee 0x18 0x12345678; dump eeprom 0 0x20' | -> ./avrdude -cusbasp -patmega328p -t +> avrdude -cusbasp -patmega328p -t avrdude: AVR device initialized and ready to accept instructions avrdude: device signature = 0x1e950f (probably m328p) Caching | ################################################## | 100% 0.01 s @@ -1714,6 +1714,20 @@ OK @end cartouche @end smallexample +@noindent +Using the Avrdude output to print strings present in flash memory: + +@smallexample +@cartouche + +% avrdude -pattiny13 -qq -U flash:r:-:r | strings +Main menu +Distance: %dcm +Exit + +@end cartouche +@end smallexample + @noindent Factory fuse setting of a device: @@ -1824,7 +1838,7 @@ EEPROM data: @cartouche # Show all memories present for the ATtiny13 -$ ./avrdude -pattiny13/ot | grep write | cut -f3 | uniq +$ avrdude -pattiny13/ot | grep write | cut -f3 | uniq eeprom flash lfuse