Avr Isp MK2
Avr Isp MK2
Avr Isp MK2
USER’S MANUAL
Document revision R, August 2024
Designed by OLIMEX Ltd, 2012
DISCLAIMER
© 2024 Olimex Ltd. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd.
Other product names may be trademarks of others and the rights belong to their respective owners.
The information in this document is provided in connection with Olimex products. No license, express
or implied or otherwise, to any intellectual property right is granted by this document or in connection
with the sale of Olimex products.
It is possible that the pictures in this manual differ from the latest revision of the board.
The product described in this document is subject to continuous development and improvements. All
particulars of the product and its use contained in this document are given by OLIMEX in good faith.
However all warranties implied or expressed including but not limited to implied warranties of
merchantability or fitness for purpose are excluded. This document is intended only to assist the reader in the
use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any
information in this document or any error or omission in such information or any incorrect use of the
product.
This evaluation board/kit is intended for use for engineering development, demonstration, or evaluation
purposes only and is not considered by OLIMEX to be a finished end-product fit for general consumer use.
Persons handling the product must have electronics training and observe good engineering practice
standards. As such, the goods being provided are not intended to be complete in terms of required design-,
marketing-, and/or manufacturing-related protective considerations, including product safety and
environmental measures typically found in end products that incorporate such semiconductor components or
circuit boards.
Olimex currently deals with a variety of customers for products, and therefore our arrangement with the user
is not exclusive. Olimex assumes no liability for applications assistance, customer product design, software
performance, or infringement of patents or services described herein.
Page 2 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
The product is based on Dean Camera's LUFA USB stack. More info at:
http://www.fourwalledcubicle.com/
The LUFA library is currently released under the MIT license, included below.
Copyright (C) Dean Camera, 2016 dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
Permission to use, copy, modify, and distribute this software and its documentation for any purpose
is hereby granted without fee, provided that the above copyright notice appear in all copies and that
both that the copyright notice and this permission notice and warranty disclaimer appear in
supporting documentation, and that the name of the author not be used in advertising or publicity
pertaining to distribution of the software without specific, written prior permission.
The author disclaims all warranties with regard to this software, including all implied warranties of
merchantability and fitness. In no event shall the author be liable for any special, indirect or
consequential damages or any damages whatsoever resulting from loss of use, data or profits,
whether in an action of contract, negligence or other tortuous action, arising out of or in connection
with the use or performance of this software.
Page 3 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
Table of Contents
DISCLAIMER.................................................................................................................................... 2
CHAPTER 1 OVERVIEW................................................................................................................ 5
1. Introduction to the chapter.......................................................................................................5
1.1 Features.....................................................................................................................................5
1.2 Target market and purpose of the board...............................................................................5
1.3 Document organization........................................................................................................... 6
CHAPTER 2 PROGRAMMER DESCRIPTION........................................................................... 7
2. Introduction to the chapter.......................................................................................................7
2.1 Layout (top view)..................................................................................................................... 7
CHAPTER 3 SETTING UP THE AVR-ISP-MK2 BOARD........................................................... 8
3. Introduction to the chapter.......................................................................................................8
3.1 Electrostatic warning...............................................................................................................8
3.2 Requirements............................................................................................................................8
3.3 Quick setup...............................................................................................................................9
CHAPTER 4 RECOMMENDED SOFTWARE TOOLS............................................................. 13
4. Introduction to the chapter.....................................................................................................13
4.1 Microchip Studio, Atmel Studio, AVR Studio in Windows................................................ 13
4.1.1 Driver installation for AVR Studio in Windows........................................................................................ 14
4.1.2 Manually pointing to new drivers (Windows only)...................................................................................15
4.1.3 Manually switching between all installed drivers under Windows......................................................... 15
4.2 Arduino, AVRDUDE, Linux..................................................................................................16
4.2.1 Changing firmware for Windows users......................................................................................................16
4.2.2 Changing firmware for Linux (AVRDUDE) users....................................................................................19
4.2.3 Using Arduino IDE with AVR-ISP-MK2....................................................................................................21
4.2.4 10-pin ICSP to 6-pin ICSP cable.................................................................................................................22
CHAPTER 5 HOW THE LATEST FIRMWARE WAS MADE.................................................. 23
CHAPTER 6 INTERFACES AND HARDWARE.........................................................................25
6. Introduction to the chapter.....................................................................................................25
6.1 Programming interfaces........................................................................................................25
6.1.1 10-pin ICSP...................................................................................................................................................25
6.1.2 6-pin PDI.......................................................................................................................................................25
6.1.3 6-pin TPI........................................................................................................................................................25
6.2 Upgrade firmware button..................................................................................................... 25
6.3 Bootloader restore..................................................................................................................26
6.4 Jumpers description.............................................................................................................. 27
6.4.1 TARGET jumper..........................................................................................................................................27
6.4.2 POWER jumper...........................................................................................................................................27
6.5 LEDs explained...................................................................................................................... 28
6.6 USB connector........................................................................................................................28
CHAPTER 7 REVISION HISTORY AND SUPPORT.................................................................29
7. Introduction to the chapter.....................................................................................................29
7.1 Document revision table........................................................................................................29
7.2 Useful web links and purchase codes................................................................................... 30
7.3 FAQ......................................................................................................................................... 31
7.4 Product support..................................................................................................................... 33
Page 4 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
CHAPTER 1 OVERVIEW
1.1 Features
Some of the unit's features are listed below:
Open-source hardware, open-source software product, all design files are available to the
customer
Suitable for programming AVR, tinyAVR, AVR XMEGA microcontrollers
Tested and working with: Microchip Studio 7; Atmel Studio 7; Atmel Studio 6; AVR Studio
5; AVR Studio 4;
Tested and working with AVRDUDE 7.3 and Arduino IDE;
Test and working under Windows and Linux, reported to be working with Mac OS;
Connects to PC via USB type B connector at USB 2.0 full speed;
Does not need external power supply as it takes the power supply from the USB port;
Uses Atmel's 2×5 pin ICSP, and 2×3 pin PDI, and TPI connector layouts;
Works with 5V and 3.3V targets and can supply target with power (jumper selectable);
Programs both flash memory and EEPROM;
Supports fuses and lock bit programming;
Upgrade-able for future device support;
Supports target voltages from 1.8V to 5.5V;
2 ribbon female-female cables – 10pin and 6pin each 20 cm (8") long;
Adjustable ISP programming speed (50Hz to 8MHz SCK frequency);
Dimensions of the box: 45×30mm ~ (1.7×1.2)"
AVR-ISP-MK2 can program tinyAVR and megaAVR devices using the ISP Interface, tinyAVR
devices using the TPI interface, and AVR XMEGA devices using the PDI Interface.
The firmware of OLIMEX AVR-ISP-MK2 is based on the AVRISPMKII project that is part of
LUFA (Lightweight USB Framework for AVRs) software project started and maintained by Dean
Camera. More info about the initial software and hardware idea can be found here:
http://www.fourwalledcubicle.com/AVRISP.php.
Page 5 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
Page 6 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
The programmer comes with two cables (10-pin one and 6-pin one) with female-female plastic
connectors. The 10-pin cable fits only the ICSP10 connector. The 6-pin cable fits both the PDI and
the TPI connectors – it can be used for either of these interfaces.
Note that there is no 6-pin ISP connector provided; there is only 10-pin ISP connector
available.
Page 7 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
The procedure to power up the board is given, and a description of the default board behavior is
detailed.
3.2 Requirements
In order to set up the AVR-ISP-MK2 optimally, you might need to update your set of hardware and/
or software tools. The major components needed are listed below.
- any Windows
- any frequently updated Linux distribution
- any Mac OS/OSX
- Microchip Studio 7
- AVRDUDE 7.0 or newer
- Arduino IDE
Page 8 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
The quick setup had been tested under Windows 10 x64 and under Windows 7 x64. The quick setup
had been tested with Microchip Studio 7, AVRDUDE v7.3 compiled for Windows, and Arduino
IDE 1.8.19 (which seems to use AVRDUDE v6.3.0).
This quick setup is not suitable for AVR Studio 4.19 (since the drivers for AVR Studio and the
drivers for Atmel Studio are incompatible). The installation instructions for AVR-ISP-MK2 and
AVR Studio 4.19 can be found further down in this document.
The steps below describe the typical way to use AVR-ISP-MK2 under Windows.
Step 1: Download and extract the drivers for AVR-ISP-MK2. These can be downloaded from the
following location:
https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/resources/DRIVER-MK2.zip
Step 3: Open “Windows Device Manager” and find the entry for AVR-ISP-MK2. Right-click over
it and select “Update Driver Software”. A dialog would pop-up→select the bottom option “Browse
my computer for driver software”. In the next window click “Browse” and point to the folder where
you extracted the drivers (Step 1).
Step 4: Open “Windows Device Manager” again. The programmer should be listed as “AVRISP
mkII” under the “libusb-win32 devices” group. Confirm that the entry for AVR-ISP-MK2 looks like
the picture below:
Page 9 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
If there are problems with the drivers, notice that sometimes Windows automatically assigns
improper drivers to the unit. You would need to manually switch to the proper drivers. Refer to
chapter “4.1.2 Manually pointing to new drivers”.
Further down in this sub-chapter you can find some optional steps that would help you use the
newly installed AVR-ISP-MK2 with several software tools for Windows – Microchip Studio 7;
AVRDUDE 7.3; Arduino IDE.
(Optional) Step 5: Visit Microchip's web-site and download the latest Microchip Studio for AVR
and SAM device. At the time of writing this document, the web page to download Micorchip Studio
is this one:
https://www.microchip.com/en-us/tools-resources/develop/microchip-studio#Downloads
Install Microchip Studio. Inside the studio Olimex AVR-ISP-MK2 is recognized as “AVRISP mkII”.
Connect your target to the programmer, make sure that sufficient power supply is provided, and test
the connection from “Tools” → “Device Programming”. Select the proper target from the drop
down menu and finally click “Apply”. A successful connection is shown below:
At this point you have AVR-ISP-MK2 and Microchip Studio 7 successfully working together. If you
also wish to use AVRDUDE continue with the optional steps below.
Page 10 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
(Optional) Step 6. Either compile from sources or download a prebuilt release of AVRDUDE. You
can find archives with stable releases at the link below:
https://github.com/avrdudes/avrdude/releases
For the Windows test listed below we used avrdude-v7.3-windows-x64.zip that was uploaded on 7th
of February 2024. We also used our board MOD-IO that has an ATmega16A chip.
Once you have acquired a working version of AVRDUDE - open a command prompt (open search
or run “CMD”) and navigate to the folder that contains avrdude.exe. Make sure your target is
powered and execute a sample command. For example, to check the microcontroller ID of
ATmega16A execute:
At this point you have AVR-ISP-MK2 properly working with AVRDUDE v7.3 and also with
Microchip Studio 7. If you wish to also test the Arduino IDE connection continue with the next
optional step.
Page 11 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
(Optional) Step 7. Download the install the latest version of Arduino IDE from the page below:
https://www.arduino.cc/en/software
For the Windows test listed below we used Arduino version 1.8.19 and our board OLIMEXINO-328
which comes with ATmega328p.
Start Arduino. Load the blinking LED example from File → Examples → Basics → Blink. Set the
proper board and processor from Tools → Board and Tools → Processor. Remember to select
AVRISP mkII from Tools → Programmer.
Finally, select Sketch → Upload Using Programmer. If you have verbose enabled you should
receive messages similar to the one below:
Page 12 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
AVR-ISP-MK2 comes with firmware compatible with Microchip Studio, AVRDUDE, and Arduino.
If you have doubt that you have the latest firmware version (or if you have accidentally corrupted
the firmware or changed it with other software) you might want to refer to one of the following sub-
chapters that explain how to upload the latest firmware: “4.2.1 Changing firmware for Windows
users”; “4.2.2 Changing firmware for Linux users”; or “6.2 Upgrade firmware button”
Important – the drivers for the old AVR Studio and Microchip/Atmel Studio are incompatible.
AVR Studio uses either Jungo or Atmel USB drivers and Atmel Studio requires LibUSB
drivers. Atmel does not recommended using AVR Studio and Atmel Studio simultaneously on
the same machine – in order to do it each time you would need to manually switch the AVR-
ISP-MK2 drivers.
Something more – to complicate things further – Jungo Windows drivers for AVR Studio and the
LibUSB Windows drivers for AVRDUDE are incompatible (but the drivers for Atmel Studio and
AVRDUDE are the same if you are using newer Windows so if you are using the latest releases you
are already set).
The default way of installing the drivers for Microchip Studio, AVRDUDE, and Arduino under
Windows is available in the previous chapter “3.3 Quick setup”.
If you want to use AVR Studio 4 or 5, please refer to the next sub-chapter (“4.1.1 Driver installation
for AVR Studio in Windows”).
In order to use the product with AVRDUDE or Arduino IDE (which uses AVRDUDE) under Linux
you would need to change the firmware – follow the procedure in chapter “4.2 Arduino,
AVRDUDE, Linux” and “4.2.2 Changing firmware for Linux (AVRDUDE) users”.
Page 13 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
If you wish to use AVR Studio 4 or 5 make sure to use the installer provided in the archive with the
firmware (usually named “driver-atmel-bundle-x.x.xxx.exe). Only these drivers are compatible but
you might need extra steps in certain cases or under certain newer versions of Windows.
The author of this document managed to get AVR Studio 4 working under Windows 10 only on a
clean Windows 10 installation (that never had any newer Studio installed, e.g. Atmel Studio 6 or
Atmel Studio 7). After AVR Studio 4 had been installed, it was safe to install newer studio and
using one or the other required manual driver switching. If you installed newer studio first, and then
AVR Studio 4, you would probably need to re-install Windows (or find some other workaround,
like registry magic) since driver switching was insufficient to get it working.
If you are using Windows 10 x64, and you want to use AVR Studio 4 or 5 (notice that this is not
Atmel Studio 7 or newer) consider the following driver instillation advice from a customer (thank
you, James):
Page 14 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
1. Make sure that you have downloaded and extracted the drivers provided for AVR-ISP-MK2
available here:
https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/resources/DRIVER-MK2.zip
1. First make sure that you have disabled the automatic Windows driver update. It can take control
of driver installation before you can react. In Windows 7 search for "Device Installation Settings".
Else when you install the working driver it might get overwritten by another one that Windows
thinks would work better.
2. Also make sure that “Driver Signature Enforcement” is disabled before trying to change the
drivers (since some drivers might be unsigned). There are a lot of instructions online on how to do it
(it requires a restart and entering the Windows boot menu with F8 usually in older Windows
releases and entering advanced startup options in newer Windows releases).
3. Connect AVR-ISP-MK2 to the personal computer.
4. Right-click over the AVR-ISP-MK2 entry (in your case probably “libusb-win32” driver) in
“Windows Device Manager”.
5. Select “Update Driver Software...”.
6. Select “Browse my computer for driver software”.
7. Select the bottom option “Let me pick from a list of drivers on my computer”.
8. Pick one of the driver entries in the list under “Model”, if there are more then one start with the
first (top-most) and finish the installation (steps 9 and 10), then test with your software and if it still
doesn’t work start all over from point 1. but this time select the second entry in the “Model” list,
Page 15 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
It is impossible to use the AVR-ISP-MK2 simultaneously with AVR Studio. It would depend on you
which one you prefer. You need to change the firmware of AVR-ISP-MK2 (using Atmel Flip or dfu-
programmer software) AND the Windows drivers every time you switch between Arduino and AVR
Studio (or vice versa).
https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/resources/DRIVER-MK2.zip
1. Connect the device to the USB and with a needle or sharp object press the button on it's back side
(the one that the arrow points as "Upgrade"; the LEDs should turn off) which will put the processor
in bootloader state – ready for firmware upgrade.
2. Download and install the Atmel Flip software. Check in device manager if the device is
recognized as AT90USB162 if it isn't search for proper drivers in Atmel Flip installation folder.
3. After that run the Flip and select AT90USB162 in Device -> Select
Page 16 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
5. From File -> Load hex files choose OLIMEX-AVR-ISP-MK2.hex – the latest and greatest
fimrware based on latest LUFA, compatbile with LibUSB driver, if you want to switch to older
versions of the firmware browse the “OLDER-VERSIONS” folder.
6. Click “Run” and after it completes, unplug and plug again AVR-ISP-MK2 from the USB.
7. Uninstall any previous drivers (selecting delete option) from device manager and scan for
hardware changes or plug/unplug again. Note that for the Atmel USB/Jungo drivers you might
need to go to the control panel and uninstall the drivers from “Programs and Features” - the
drivers are called either “Jungo” or “Atmel USB”.
Page 17 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
9. Install the new drivers corresponding to your needs (usually by right-clicking over the
programmer entry and selecting “Update Driver Software...”)
The next picture shows how to install the libusb-win32 drivers over the Jungo ones – you have to
point to the libusb folder and agree to install despite the warning.
Page 18 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
Important: it is possible that the drivers get blocked under Windows 7, Windows 8, Windows 10, or
Window 11. If this is the case when you visit the “Windows Device Manager” there would be
yellow triangle notifying for the lack of driver signature. You would need to disable the “Driver
Signature Enforcement”, which is enabled by default.
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).
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}.
cd /etc/udev/rules.d
sudo ln ../avrisp.rules 60-avrisp.rules
groups
8. Restart udev
assuming that you have ATmega16 microcontroller (check the AVRDUDE documentation for list of
microcontrollers). The output should be like:
assuming you have ATmega328P and your binary code is named “test.hex”. The output should be
like:
Page 20 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
Note that latest AVRDUDE versions (starting with AVRDUDE 6.x.x) feature a bug that affects
AVR-ISP-MK2. Either use AVRDUDE versions prior to 6.x.x or apply this patch to the AVRDUDE
sources and compile.
The same problems affects the newest releases of Arduino IDE – they use AVRDUDE versions
6.x.x or newer. The last suitable Arduino IDE version that uses pre-6.x.x AVRDUDE version is
Arduino IDE 1.5.7.
Page 21 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
6. Open a simple blinking LED example and adjust the pin values according to the schematic of
your device (some boards doesn't require a pin number change).
7. Remember to click “Upload Using Programmer”! By default the right arrow in the interface
would attempt to upload via the bootloader!
Special mention for Olimex boards – sometimes the board refuses to reset before programming
when using Arduino. Try holding the reset button and release it simultaneously while clicking
“Upload Using Programmer”.
Page 22 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
MCU = at90usb162
ARCH = AVR8
BOARD = OLIMEXISPMK2
F_CPU = 16000000
OPTIMIZATION = s
TARGET = AVRISP-MKII
Change the number to a bigger one. If it is lower than the current one used in Studio it might not
work.
Either use your favorite compiler and environment to compile the project (make sure to use the
make file that we edited above). Here we do the following:
1. Open AVR Studio 4 and create a new blank project. Select AVR GCC from the left box. Remove
the tick from the blank .c file. IMPORTANT - NAME THE PROJECT "AVRISP-MKII" - or
compilation errors would occur (elf not found)!!!!
2. Open the project properties/configuration and in the general tab point to the makefile we edited
earlier (\lufa-master\Projects\AVRISP-MKII\makefile). Save. Do not change anything else (it would
not be taken into account anyway). (don't forget to point WinAVR to the avr-gcc.exe and to the
make.exe! - these are in the place where you installed WinAVR-20100110 – one in subfolder “bin”
the other in sub-folder “utils”).
3. Clean and rebuild the project. If there are issues notice that WinAVR-20100110 might require a
patch to work under Windows 8.1, Windows 10, and Windows 11. Search online for a file to replace
msys-1.0.dll in \WinAVR-20100110\utils\bin.
Page 23 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
4. If build is successful, get the hex for Atmel upload from the main folder (\lufa-master\lufa-
master\Projects\AVRISP-MKII\) and upload it to the AVR-ISP-MK2 using Flip (remember to put
board in bootloader mode via the button) – or under Linux you can use dfu-programmer.
Page 24 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
The ICSP connector is not over-voltage/over-current protected. The two simple protection methods
implemented are (1) diodes for electrostatic discharge and (2) series of resistors for basic protection.
Depending on the target you might need AVR-ICSP adapter since AVR-ISP-MK2 doesn't provide 6-
pin ICSP connector. Note that it is bought separately.
The upgrade firmware button might be found in a small hole between the PDI interface and the
ICSP10 interface. The button is used to enter bootloader mode. The memory can then be
programmed with new firmware. If you wish to update your firmware check if there is newer
version in the web and follow the algorithm:
1) Connect the programmer to the USB and with a sharp object (needle or pin) press the upgrade
Page 25 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
pin – it is in a small hole at the back of the board (this will start the bootloader and will turn off the
LED, also probably will show a new unrecognized device in device manager for which we will
install driver in step 3)
2) Download and install the latest version of "Flip" software (it can be downloaded from the Atmel's
web-site)
3) Open its install folder and update the software of the unrecognized device (usually under "Other
devices" tab) with the drivers from folder named "usb"; the device should now be recognized as
AT90USB162 under "libusb-win32" tab
4) Start "Flip" and click "Select a target device" -> choose AT90USB162
6) From "File -> load HEX file" choose this HEX (CLICK FOR DOWNLOAD) and click "RUN"
in the "Operations Flow" section
Please refer to 4.2 Arduino, AVRDUDE, Linux for more detailed description.
Even if the board never had any issue it is possible that the bootloader might work with some
operating systems, and refuse to work with others. This is because the different USB policies and
timings – such changes require a change in the bootloader itself. That is why we are updating the
provided bootloader regularly with the latest official version. Please note:
Changing the firmware with the provided elf file should be performed only in extreme scenarios
when all other options had been long exhausted. The user should proceed with extreme caution
because the upgrade procedure might seriously damage the hardware of the board.
Performing the bootloader update requires a third-party programming tool, soldering skills and
voids the warranty of the unit!
2. Change the position of the SMT jumper ER/PGM to the opposite position. This would require
Page 26 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
cutting between the pads of the original position and soldering the pads of the new position. After
the change the jumper should be in PGM position. This changes the direction of programming on
the 10-pin ICSP connector – instead of programming – it would get programmed.
3. Connect a compatible programmer (able to program AT90USB162, it can also be another AVR-
USP-MK2) to AVR-ISP-MK2's 10-pin ICSP connector on one side and to your computer on the
other.
4. Download and extract the archive with the drivers (CLICK FOR DOWNLOAD).
5. Launch your favorite programming tool (AVR Studio, Atmel Studio, AVRDUDE, etc.) and
import the elf – it is located in folder DEFAULT-ELF in the archive you downloaded in point 4.
7. At this point you should test if the bootloader works as expected. It is now ready-to-use. Refer to
chapters 4.2 and 5.2 of this document for detailed institutions on how to use the bootloader to
connect to “Flip”. Note that to be able to use the ICSP interface for the programming of targets you
would need to perform the next step 8.
8. Switch back the position of the jumper to original position (after the switch the jumper should be
in position ER).
The maximum amperage available for both 3.3V and 5V modes is 300mA.
Page 27 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
During firmware update (after pressing the button) – both LEDs remain turned off.
Using different firmware might alter the behavior of the LEDs. The LEDs behavior shouldn’t
be used as sign for hardware problem.
If you encounter unstable irregular behavior of the programmer or if the powering from the
programmer to your target is unreliable, please follow the recommendations below:
• As with most USB devices please ensure that your cables are good enough. Low-cost low-
quality cables might have very high inner resistance, thus lowering the voltage that the unit
receives.
• Avoid using USB hubs and splitters.
• Avoid using USB 3.0 ports.
• Test with another USB port.
• Test with another computer.
Page 28 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
Page 29 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/
https://www.microchip.com/en-us/development-tool/atavrisp2
http://www.fourwalledcubicle.com/LUFA.php
ORDER CODES:
AVR-ICSP – 10 ↔ 6 pin ICSP adapter cable, since AVR-ISP-MK2 has only 10-pin ICSP interface
You can order from our web-shop or from any of our distributors. The list of official Olimex
distributors might be found at: https://www.olimex.com/Distributors/.
Page 30 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
7.3 FAQ
Q1: The programmer is not recognized in the Studio! What should I do?
A1: Most of the problems that customers encounter with AVR-ISP-MK2 are related to the driver
installation since the different versions of AVR, Atmel, Micorchip Studios require different drivers.
Atmel/Microchip Studios require LibUSB drivers; AVR Studios require Jungo drivers.
For example, Atmel Studio 7 would not work with Jungo drivers.
Q2: I can connect to the programmer, but can't connect the programmer to the target. Also
when I try to read the device ID there are errors. What should I do?
1. Check if you have used the proper interface according to your target.
2. If using ISP try changing the ISP frequency with lower or higher values – sometimes settings
lower ISP frequency restricts reading/writing – try to keep 4KHz at least.
3. If you are using a custom made board or you connect the microcontroller directly with wires
make sure you follow the AVR ICSP programming standards.
4. Make sure you are using the ISP interface of AVR-ISP-MK2. If your target board has a 6 pin
connector instead of the 10 pin on AVR-ISP-MK2 make appropriate adapter.
5. Ensure the target is powered. It can be powered from AVR-ISP-MK2 by changing the “Target”
jumper to position On (to the USB).
Q3: I use Atmel Studio 6. The device is visible and properly installed but my target
microcontroller is nowhere to be found in the drop-down menus. How shall I proceed?
A3: Some target microcontrollers lack ready configuration files in the stock versions of Atmel
Studio 6. You might need to add such manually follow the pattern of the already existing .xml files
located by default in C:\Program Files (x86)\Atmel\Atmel Studio 6.x\tools\AVRISPmkII\xml
Q4: I have your AVR-ISP-MKII programmer and it works OK but in Micorchip Studio it
shows that the target voltage is 3.3V, when I'm sure the board gets 5.0V. What is wrong?
A4: Olimex AVR-ISP-MK2 cannot detect the target voltage! The information about the voltage in
Microchip Studio is just a place holder – it shouldn't be taken as a correct reading!
Q5: Does the firmware of AVR-ISP-MK2 differ from the original Atmel firmware?
A5: Yes. The firmware of AVR-ISP-MK2 is based on the LUFA project by Dean Camera.
Q6: I want to use AVR-ISP-MK2 with Arduino IDE. What should I do?
Q7: Previously I used AVR Studio 4 successfully but when I installed Microchip Studio 7 I can
no longer connect to AVR-ISP-MK2 in AVR Studio 4. What can I do to use AVR Studio 4 and
Microchip Studio 7 at the same time?
A7: The drivers installed with Microchip Studio 7 overwrote the drivers that worked with AVR
Studio 4. These drivers are not compatible you would have to downgrade the drivers manually. The
official Microchip workaround can be found here:
https://microchip.my.site.com/s/article/Downgrading-tools-to-use-older-Jungo-driver
A8: - If you get error with message "MPLABCOMM_INVALID_HANDLE" - you can fix it by
navigating in the menus of Atmel Studio. Go to Tools -> Options -> Tools -> Tool Settings ->
Check Firmware -> False. (shown here: https://i.imgur.com/XWjed2c.jpg)
- Update the firmware. Make sure that the suitable drivers for Microchip Studio are installed.
To update the firmware please, follow the steps listed above in this document.
A9: This feature was added in the 2024 firmware update. Make sure to update the firmware of your
advice.
Page 32 of 33
OLIMEX© 2024 AVR-ISP-MK2 user's manual
Please consider reading the paragraph below about the warranty of Olimex products.
Our boards have lifetime warranty against manufacturing defects and components.
During development work it is not unlikely that you can burn your programmer or
development board. This is normal, we also do development work and we have damaged A
LOT of programmers and boards during our daily job so we know how it works. If our
board/programmer has worked fine then stopped, please check if you didn't apply over
voltage by mistake, or shorted something in your target board where the programmer was
connected etc. Sometimes boards might get damaged by ESD shock voltage or if you spill
coffee on them during your work when they are powered.
Please note that warranty do not cover problems caused by improper use, shorts, over-
voltages, ESD shock etc.
If the board has warranty label it should be not broken. Broken labels void the
warranty, same applies for boards modified by the customer, for instance soldering
additional components or removing components – such boards will be not be a subject of
our warranty.
If you are positive that the problem is due to manufacturing defect or component you
can return the board back to us for inspection.
When we receive the board we will check and if the problem is caused due to our fault
and we will repair/replace the faulty hardware free of charge, otherwise we can quote
price of the repair.
Note that all shipping costs back and forth have to be covered by the customer. Before
you ship anything back you need to ask for RMA. When you ship back please attach to it
your shipping address, phone, e-mail, RMA# and brief description of the problem. All
boards should be sent back in anti-static package and well packed to prevent damages
during the transport.
Page 33 of 33