User manual

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. 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 Atmel 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
Atmel 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: 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?
A6: You need to perform a firmware change and to switch to AVRDUDE firmware. Then you need
to change the drivers to the libusb ones! A detailed explanation can be found in chapter “4.2.3 Using
Arduino IDE with AVR-ISP-MK2”.
Q7: I have performed a firmware switch. My drivers are properly installed. Still I can't
properly program my target with AVRDUDE. I also tested with the latest Arduino IDE. What
is the problem? Is my programmer bricked?
A7: The hardware of your AVR-ISP-MK2 is fine. This is a software problem releated to latest
AVRDUDE releases. The bug affects LUFA-based programmers. Either use AVRDUDE versions
prior to 6.x.x or apply this patch to the AVRDUDE sources and compile.
The same problems appears in newest releases of Arduino IDE – they use AVRDUDE versions
6.0.1 or newer. The last suitable Arduino IDE version that uses pre-6.x.x AVRDUDE version is
Arduino IDE 1.5.7.
More about the issue can be found here: http://www.avrfreaks.net/forum/lufa-based-avrisp-mkii-
doesnt-work-avrdude-601
Page 23 of 24