Notes on flashing AVR chips, both bare chips and contained within an Arduino board.
Run avrdude
without a -U
argument to test communication.
Direct USB connection for devices Arduino UNO or Nano, where the serial port is
something like tty.usbmodem411
in Mac OS X and ttyACM0
under Ubuntu - but only
if the chip has a boot loader installed:
$ avrdude -c arduino -P /dev/XXX -p m328p
The Arduino Pro Mini does not have a USB port, so requires at FTDI USB to serial adapter. Serial programming requires that a bootloader already be installed:
$ avrdude -c avrisp -b 57600 -P /dev/ttyUSB0 -p m328p
Bare AVR chip, or using ICSP header to burn new bootloader on Arduino boards.
USBasp Programmer
$ avrdude -c usbasp -p m328p
USBtinyISP
Does not seem to play well with USB3. Try another cable, or use an intermediate USB2 hub.
$ avrdude -c usbtiny -p m328p
Add -U flash:w:filename:a
to any of the above commands, eg.:
$ avrdude -c usbtiny -p m328p -U flash:w:main.hex:a