User manual

OLIMEX© 2015 AVR-ISP-MK2 user's manual
4.2.2 Changing firmware for Linux (AVRDUDE) users
1. Download and install “dfu-programmer” package (apt-get...).
2. Connect the programmer AVR-ISP-MK2 to the computer and press the upgrade button with a
sharp object (you can use a piece of thick wire or a needle).
3. Erase the microcontroller inside AVR-ISP-MK2 with the command:
dfu-programmer at90usb162 erase
4. Flash the firmware with:
dfu-programmer at90usb162 flash --debug 6 libUSB-AVRISP-MKII.hex
5. Create new file /etc/udev/avrisp.rules
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
# Atmel Corp. JTAG ICE mkII
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2103", MODE="660", GROUP="dialout"
# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2104", MODE="660", GROUP="dialout"
# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2107", MODE="660", GROUP="dialout"
LABEL="avrisp_end"
In some kernels SYSFS module is disabled by default. There are two flags responsible and you can
enable SYSFS by manipulating one or both of the flags CONFIG_SYSFS and
CONFIG_SYSFS_DEPRECATED_V2. In most cases it might be better and faster to swap
SYSFS{idProduct} with ATTR{idProduct}.
6. Create a virtual link to the file and give it a rule priority
cd /etc/udev/rules.d
sudo ln ../avrisp.rules 60-avrisp.rules
7. Check you're in the dialout group
groups
8. Restart udev
sudo restart udev
That's it! You can test the connection following the tips on the next page.
Page 13 of 24