I’ve been quite busy with the old electronics recently. I got an ATtiny2313 and ATmega1284P sample from Atmel and flashed the arduino-tiny and mighty-1284p cores respectively using the updated arduino-mk v1.5 which now supports Arduino IDE 1.6.3
Here is the 1284 running “Blink”:
Here is the 2313 on a micro breadboard using only a resistor, LED and 5v/GND wires to run Blink:
The 2313 Makefile looks like:
ISP_PROG = usbasp BOARD_TAG = attiny2313at1 ALTERNATE_CORE = tiny include /usr/share/arduino/Arduino.mk
And we upload a sketch using “make ispload”.
Or if you want to install the Optiboot bootloader on the 1284P, the Makefile looks like:
BOARD_TAG = mighty_opt BOARDS_TXT = $(HOME)/arduino/hardware/mighty-1284p/boards.txt BOOTLOADER_PARENT = $(HOME)/arduino/hardware/mighty-1284p/bootloaders BOOTLOADER_PATH = optiboot BOOTLOADER_FILE = optiboot_atmega1284p.hex ISP_PROG = usbasp AVRDUDE_OPTS = -v include /usr/share/arduino/Arduino.mk
We burn a bootloader (pretty pointless) using “make burn_bootloader”.
On the 1284P the ICSP pins are all down the left side near the top:
MOSI 6 MISO 7 SCK 8 RST 9 VCC 10 GND 11
It easiest just to use dupont cables from the USBASP to some breadboard.