Olimex AVR-ISP-MK2 User guide

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.
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.
THERE IS NO WARRANTY FOR THE DESIGN MATERIALS AND THE COMPONENTS USED TO CREATE AVR-ISP-MK2. THEY ARE CONSIDERED SUITABLE ONLY FOR AVR-ISP-MK2.
Page 2 of 24
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.
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
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 disclaim 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 24
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 ..................................................................................................................................... 5
1.2 Target market and purpose of the board ............................................................................... 5
1.3 Document organization ........................................................................................................... 6
CHAPTER 2 SETTING UP THE AVR-ISP-MK2 BOARD .................................... 7
2. Introduction to the chapter ....................................................................................................... 7
2.1 Electrostatic warning ............................................................................................................... 7
2.2 Requirements ............................................................................................................................ 7
CHAPTER 3 AVR-ISP-MK2 BOARD DESCRIPTION .......................................... 8
3. Introduction to the chapter ....................................................................................................... 8
3.1 Layout (top view) ..................................................................................................................... 8
CHAPTER 4 RECOMMENDED SOFTWARE TOOLS ........................................ 9
4. Introduction to the chapter ....................................................................................................... 9
4.1 AVR Studio and Atmel Studio in Windows ........................................................................... 9
4.2 Arduino, AVRDUDE, Linux .................................................................................................... 9
4.2.1 Changing firmware for Windows users ........................................................................................................ 9
4.2.2 Changing firmware for Linux (AVRDUDE) users .................................................................................... 13
4.2.3 Using Arduino IDE with AVR-ISP-MK2 .................................................................................................... 15
4.2.4 10-pin ICSP to 6-pin ICSP cable ................................................................................................................. 16
CHAPTER 5 INTERFACES AND HARDWARE .................................................. 17
5. Introduction to the chapter ..................................................................................................... 17
5.1 Programming interfaces ........................................................................................................ 17
5.1.1 10-pin ICSP ................................................................................................................................................... 17
5.1.2 6-pin PDI ....................................................................................................................................................... 17
5.1.3 6-pin TPI ........................................................................................................................................................ 17
5.2 Upgrade firmware button ..................................................................................................... 17
5.3 Bootloader restore .................................................................................................................. 18
5.4 Jumpers description .............................................................................................................. 19
5.4.1 TARGET jumper .......................................................................................................................................... 19
5.4.2 POWER jumper ........................................................................................................................................... 19
5.5 LEDs explained ...................................................................................................................... 20
5.6 USB connector ........................................................................................................................ 20
CHAPTER 6 REVISION HISTORY AND SUPPORT .......................................... 21
6. Introduction to the chapter ..................................................................................................... 21
6.1 Document revision table ........................................................................................................ 21
6.2 Useful web links and purchase codes ................................................................................... 22
6.3 FAQ ......................................................................................................................................... 22
6.4 Product support ..................................................................................................................... 24
Page 4 of 24
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.1 Features

Some of the unit's features are listed below:
Tested and working with: AVR Studio 4; AVR Studio 5; Atmel Studio 6; Atmel Studio 7
Tested and working with Arduino and AVRDUDE after a firmware change
Connects to PC via USB type B connector at 2.0 Full speed
Does not need external power supply as it takes the power supply from USB
Uses Atmel's 2×5 pin ICSP and 2×3 pin PDI and TPI connector layout Works with 5V and 3.3V targets (selectable) and can supply target with power
Programs both flash and EEPROM
Supports fuses and lock bit programming
Upgradeable for future device support
Supports target voltages from 1.8V to 5.5V
2 ribbon female-female cables – 10pin and 6pin
Adjustable ISP programming speed (50Hz to 8MHz SCK frequency)
Dimensions: 45×30 mm (1.7×1.2") + 20 cm (8") ribbon cable
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.

1.2 Target market and purpose of the board

AVR-ISP-MK2 is a ready-to-use programmer low-cost clone of AVRISP-MKII. The board is suitable for programming microcontrollers that, according to their respective datasheets, allow ICSP, PDI or TPI programming modes.
OLIMEX AVR-ISP-MK2 is a programmer based on the hardware of AVRISP-MKII clone open source project and the USB stack of the LUFA (Lightweight USB Framework for AVRs) software project started and maintained by Dean Camera. More info about the initial idea and Dean Camera can be found here: http://www.fourwalledcubicle.com/AVRISP.php.
Page 5 of 24
OLIMEX© 2015 AVR-ISP-MK2 user's manual

1.3 Document organization

Each section in this document covers a separate topic, organized as follow:
Chapter 1 is an overview of the board usage and features
Chapter 2 provides a guide for quickly setting up the board
Chapter 3 contains the general board diagram and layout
Chapter 4 mentions the main software tools used with AVR-ISP-MK2
Chapter 5 is an explanation of the interfaces, the LEDs and the jumpers position
Chapter 6 contains the revision history, useful links and support information
Page 6 of 24
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.1 Electrostatic warning

The AVR-ISP-MK2 comes in a plastic cover but make sure boards and devices interfacing with the programmer are properly grounded.

2.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 needed components are listed below.
Hardware tools:
- USB type A to USB type B cable
- Atmel board or chip that can be programmed by AVR-ISP-MK2. The list of supported devices can be found in the official Atmel web-site: http://www.atmel.com/tools/AVRISPMKII.aspx?
tab=devices
- Personal computer with USB port
Software tools:
- AVR Studio 4, AVR Studio 5, Atmel Studio 6, Atmel Studio 7 with avr-gcc compiler (or WinAVR)
- AVRDUDE
Depending on the target you might need
https://www.olimex.com/Products/AVR/Programmers/AVR-ICSP/ since AVR-ISP-MK2 doesn't
provide 6-pin ICSP connector. Note it is bought separately.
Page 7 of 24
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.
Page 8 of 24
Loading...
+ 16 hidden pages