AVR-ISP-MK2 programmer USER’S MANUAL Document revision L, October 2015 Designed by OLIMEX Ltd, 2012 All boards produced by Olimex LTD are ROHS compliant
OLIMEX© 2015 AVR-ISP-MK2 user's manual DISCLAIMER © 2015 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© 2015 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© 2015 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© 2015 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.
OLIMEX© 2015 AVR-ISP-MK2 user's manual 1.
OLIMEX© 2015 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© 2015 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.1 Layout (top view) Note that there is no 6-pin ICSP connector provided.
OLIMEX© 2015 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 and Atmel 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© 2015 AVR-ISP-MK2 user's manual 3. After that run the Atmel Flip and select AT90USB162 in Device -> Select 4. Select 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/Atmel USB/Jungo, the second one is for AVRDUDE/Arduino/libusb.
OLIMEX© 2015 AVR-ISP-MK2 user's manual 6. Click Run 7. Unplug and plug again AVR-ISP-MK2 from the USB. 8. 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”.
OLIMEX© 2015 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 picture below 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. Important: it is possible that the drivers get blocked under Windows 7, Windows 8, or Windows 10.
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.
OLIMEX© 2015 AVR-ISP-MK2 user's manual 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). The output should be like: A sample programming line for AVRDUDE would be: avrdude -p m328p -P usb -c avrispmkii -e -U flash:w:test.hex, assuming you have ATmega328P and your binary code is named “test.hex”.
OLIMEX© 2015 AVR-ISP-MK2 user's manual 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. 4.2.3 Using Arduino IDE with AVR-ISP-MK2 1. Download suitable Arduino IDE version and run it 2. Plug the AVR-ISP-MK2 to the computer and follow chapter 4.2.
OLIMEX© 2015 AVR-ISP-MK2 user's manual 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”. 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© 2015 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. More information about each of them is located in the following sub-chapters. 5.1.
OLIMEX© 2015 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 "Atmel 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
OLIMEX© 2015 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 AVRUSP-MK2) to AVR-ISP-MK2's 10-pin ICSP connector on one side and to your computer on the other. 4.
OLIMEX© 2015 AVR-ISP-MK2 user's manual 5.5 LEDs explained There are two 3mm LEDs – ORANGE and a double colored GREEN/RED.
OLIMEX© 2015 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 table Revision Changes Modified Page # A, 11.07.12 Initial Creation B, 23.07.12 Included LUFA license text C, 30.08.
OLIMEX© 2015 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© 2015 AVR-ISP-MK2 user's manual 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.
OLIMEX© 2015 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.