Loeme flash sisu faili blink.hex:
avrdude -v -V -c arduino -p atmega328p -P /dev/cu.usbmodem1201 -U flash:r:blink.hex:i
Kirjutame failisisu blink.hex arduino flash mälusse:
avrdude -v -V -c arduino -p atmega328p -P /dev/cu.usbmodem1201 -U flash:w:blink.hex:i
Loeme eeprom sisu faili eeprom-blink.hex:
avrdude -v -V -c arduino -p atmega328p -P /dev/cu.usbmodem1201 -U eeprom:r:blink.hex:i
Kirjutame failisisu eeprom-blink.hex arduino eeprom mälusse:
avrdude -v -V -c arduino -p atmega328p -P /dev/cu.usbmodem1201 -U eeprom:w:blink.hex:i
Kompileerime hello.asm faili:
;hello.asm
; turns on an LED which is connected to PB5 (digital out 13)
.include "./m328Pdef.inc"
ldi r16,0b11111111
out DDRB,r16
out PortB,r16
Start:
rjmp Start
avra hello.asm
Laadime kompileeritud hex faili hello.hex kivi peale flash mälu osasse:
avrdude -v -V -c arduino -p atmega328p -P /dev/cu.usbmodem1201 -U flash:w:hello.hex:i