AVR-ISP-MK2 programmer USER’S MANUAL Revision I, October 2013 Designed by OLIMEX Ltd, 2012 All boards produced by Olimex LTD are ROHS compliant
OLIMEX© 2013 AVR-ISP-MK2 user's manual DISCLAIMER © 2013 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.
OLIMEX© 2013 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.
OLIMEX© 2013 AVR-ISP-MK2 user's manual Table of Contents DISCLAIMER............................................................................................................. 2 CHAPTER 1 OVERVIEW......................................................................................... 5 1. Introduction to the chapter.......................................................................................................5 1.1 Features..........................................................................
OLIMEX© 2013 AVR-ISP-MK2 user's manual CHAPTER 1 OVERVIEW 1. Introduction to the chapter Thank you for choosing the AVR-ISP-MK2 programmer from Olimex! This document provides a user’s guide for the Olimex AVR-ISP-MK2 programmer. As an overview, this chapter gives the scope of this document and lists the programmer’s features. The document’s organization is then detailed. 1.1 Features Tested and working with AVR Studio 4, AVR Studio 5, ATMEL Studio 6 Connects to PC via USB 2.
OLIMEX© 2013 AVR-ISP-MK2 user's manual 1.
OLIMEX© 2013 AVR-ISP-MK2 user's manual CHAPTER 2 SETTING UP THE AVR-ISP-MK2 BOARD 2. Introduction to the chapter This section helps you set up the AVR-ISP-MK2 development board for the first time. Please consider first the electrostatic warning to avoid damaging the board, then discover the hardware and software required to operate the board. The procedure to power up the board is given, and a description of the default board behavior is detailed. 2.
OLIMEX© 2013 AVR-ISP-MK2 user's manual CHAPTER 3 AVR-ISP-MK2 BOARD DESCRIPTION 3. Introduction to the chapter Here you get acquainted with the main parts of the board. Note the names used on the board differ from the names used to describe them. For the actual names check the AVR-ISP-MK2 itself. 3.
OLIMEX© 2013 AVR-ISP-MK2 user's manual CHAPTER 4 RECOMMENDED SOFTWARE TOOLS 4. Introduction to the chapter Here you will find short info on the most popular choices for software that can be used with the AVR programmer. 4.1 AVR-STUDIO in Windows The most popular choice amongst AVR fans. The IDE has everything you need for software development with AVR under Windows. You can download it from the official Atmel web-site.
OLIMEX© 2013 AVR-ISP-MK2 user's manual 3. After that run the Atmel Flip and select AT90USB162 in Device -> Select 4. Slect Settings -> Communication -> USB -> Open 5. From File -> Load hex files choose either AVR456-studio-AVRISP-MKII.hex or libUSBAVRISP-MKII.hex - the first hex is the firmware for AVR/Atmel Studio, the second one is for AVRdude/Linux/Arduino. 6.
OLIMEX© 2013 AVR-ISP-MK2 user's manual 7. Unplug and plug again AVR-ISP-MK2 from the USB. If you have uploaded the AVRdude/Linux/Arduino firmware the LEDs would change their behavior and remain lit. 8. Uninstall any previous drivers (selecting delete option) from device manager and scan for hardware changes or plug/unplug again.
OLIMEX© 2013 AVR-ISP-MK2 user's manual Important: it is possible that the drivers get blocked under Windows 7 x64 or Windows 8. If this is the case when you visit the “device manager” there would be yellow triangle notifying for the error in driver signatures. You would need to “disable driver signing” for your operating system. 4.2.2 Changing firmware for Linux (AVRdude) users: 1. Download and install “dfu-programmer” package (apt-get...). 2.
OLIMEX© 2013 AVR-ISP-MK2 user's manual cd /etc/udev/rules.d sudo ln ../avrisp.rules 60-avrisp.rules 5. Check you're in the dialout group groups 6. Restart udev sudo restart udev That's it! To test the connection try: avrdude -p m16 -c avrispmkII -P usb -b 115200 , assuming that you have ATmega16 microcontroller (check the AVRdude documentation for list of microcontrollers).
OLIMEX© 2013 AVR-ISP-MK2 user's manual 4.2.3 Using Arduino IDE with AVR-ISP-MK2 1. Download latest Arduino IDE and run it 2. Plug the AVR-ISP-MK2 to the computer and follow chapter 4.2.1 for firmware and driver install 3. Power your target Arduino-compatible board via the AVR-ISP-MK2 (setting the jumpers properly) or externally (make sure AVR-ISP-MK2 doesn't provide additional voltage – TERGET jumper is set to OFF) 4. Make sure you use the correct interface.
OLIMEX© 2013 AVR-ISP-MK2 user's manual 4.2.4 10-pin ICSP to 6-pin ICSP cable ICSP is the most common one but some boards have only 6-pin ICSP.
OLIMEX© 2013 AVR-ISP-MK2 user's manual CHAPTER 5 INTERFACES AND HARDWARE 5. Introduction to the chapter In this chapter are presented the interfaces found on the programmed that can be found on the board. Jumpers functions are described. 5.1 Programming interfaces AVR-ISP-MK2 has three programming interfaces aiming at different processors 5.1.1 10-pin ICSP The ICSP (in-circuit serial programming) interface is suitable for programming tinyAVR and megaAVR chips.
OLIMEX© 2013 AVR-ISP-MK2 user's manual 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 "Atmel FLIP" and click "Select a target device" -> choose AT90USB162 5) Click "Select a Communication Medium" and then USB medium 6) From "File -> load HEX file" choose this HEX (CLICK FOR DOWNLOAD) and click "RUN" in the "Operatio
OLIMEX© 2013 AVR-ISP-MK2 user's manual Orange – ORANGE LED on - TARGET jumper is in position on, BLINK means programming activity (erasing, flashing, programming) After firmware change the LEDs might act in different way: Orange – turns on during programmer initialization and after that turns off; flashes when target operation is performed – read//write Red – turns on after successful USB initialization Page 18 of 22
OLIMEX© 2013 AVR-ISP-MK2 user's manual CHAPTER 6 REVISION HISTORY AND SUPPORT 6. Introduction to the chapter In this chapter you will find the current and the previous version of the document you are reading. Also the web-page for your device is listed. Be sure to check it after a purchase for the latest available updates and examples. 6.1 Document revision Revision Changes Modified Page # A, 11.07.12 Initial Creation B, 23.07.12 Included LUFA license text C, 30.08.
OLIMEX© 2013 AVR-ISP-MK2 user's manual 6.2 Useful web links and purchase codes The web page you can visit for more info on your device is https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/. For more info on the original ISP-MK2 design please visit: http://www.atmel.com/tools/AVRISPMKII.aspx. You can get the latest updates on the software at: http://www.fourwalledcubicle.com/LUFA.php.
OLIMEX© 2013 AVR-ISP-MK2 user's manual 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.
OLIMEX© 2013 AVR-ISP-MK2 user's manual 6.4 Product support For product support, hardware information and error reports mail to: support@olimex.com. Note that we are primarily a hardware company and our software support is limited. Please consider reading the paragraph below about the warranty of Olimex products. Warranty and returns: Our boards have lifetime warranty against manufacturing defects and components.