Avr programmer (usbasp)

For programming AVR devices.

USBASP programmer.

Typical connection diagram.

Once connected, you can use avrdude to flash the target device:

> avrdude –c usbasp –p m328p -e –U flash:w:io.hex

Where:

  • -c is the programmer (in this case a USBASP)

  • -p is the part to program (in this case a ATmega328P)

  • -e Erase the target device first

  • -U action to perform (in this case: "flash - flash the device, w - write, io.hex - local file containing the payload)