- Connect the Sparkfun AVR Pocket Programmer via USB to the FreeBSD 11.0 computer.
- Connect the Sparkfun AVR Pocket Programmer to the ATmega32 using a breadboard, the AVR Programming Cable and some jumper wires.
- Connect the positive lead of the 2V LED in series with a 330 ohm resistor to pin 0 of the ATmega32.
- Connect the negative lead of the 2V LED to ground.
- In the directory of the attached file
blink.c
, run the following commands.
doas pkg install avr-gcc avr-libc avrdude
avr-gcc -O2 -mmcu=atmega32 blink.c -o blink.elf
doas avrdude -c usbtiny -p atmega32 -U flash:w:blink.elf
Click the image above to view the video on YouTube.