Frontend per avrdude; cerco consigli

Ho provato con Arduino UNO R1. Funziona:

Run: avrdude -q -u -p m328p -c arduino -P /dev/ttyACM0 -b 115200 -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h

avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x1e950f
avrdude: reading lfuse memory:
avrdude: writing output file "<stdout>"
0x0
avrdude: reading hfuse memory:
avrdude: writing output file "<stdout>"
0x0
avrdude: reading efuse memory:
avrdude: writing output file "<stdout>"
0x0

avrdude done.  Thank you.

The process avrdude exit with Exit code: 0 Exit status: 0

L'errore di lettura è dato dal fatto che non ho materialmente collegato un Atmega328 ma c'era un Attiny85.
Anzi, un suggerimento: come prima operazione dovresti confrontare la firma digitale del chip con quella che ti aspetteresti e continuare solo se corrispondono. Nell'esempio, infatti, il tuo programma ha chiesto ad avrdude di leggere i dati a prescindere.

Funziona anche l'USBtinyISP. Ho letto l'Atmega328 del mio Arduino UNO:

Run: avrdude -q -u -p m328p -c usbtiny -P usb:004:003 -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h

avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x1e950f
avrdude: reading lfuse memory:
avrdude: writing output file "<stdout>"
0xff
avrdude: reading hfuse memory:
avrdude: writing output file "<stdout>"
0xde
avrdude: reading efuse memory:
avrdude: writing output file "<stdout>"
0x5

avrdude done.  Thank you.

The process avrdude exit with Exit code: 0 Exit status: 0

Test negativo invece con la Leonardo. Confermo quanto detto in precedenza. La scheda è selezionabile finché il bootloader non avvia lo sketch ArduinoISP, non appena lo fa appare "Device not found".