After upgrading to Atmel Studio 7, avr isp mkii clone stopped working.
Initial data:
Avr isp mkii clone programmer at atmtus162 16 MHz
')
1. Preparing the environment for building the firmware with fw 1.8 and compatibility switching mode- install Atmel Studio 7;
- besides, for the compiler we install a set of ported * nix utilities: BASH * nix shells, and * nix utilities such as cut, find and sed:
From
the mingw website, download the installer and select the following items during installation: mingw32-base, mingw32-binutils and msys-base, the installer installs all the dependent packages on its own;
- from the
site, download the LUFA archive of libraries with projects, unpack it to the root of the system disk (c: \ lufa-master \ ...);
- in the PATH environment variable for the user and for the system we add (! Example):
C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin;C:\MinGW\msys\1.0\bin
(the paths will depend on the type of OS and user preferences)
2. Editing the source of firmware and copying- we correct file C: \ lufa-master \ Projects \ AVRISP-MKII \ make (we register the stone and frequency)
MCU = at90usb162 ARCH = AVR8 BOARD = USBTINYMKII F_CPU = 16000000 F_USB = $(F_CPU) OPTIMIZATION = s TARGET = AVRISP-MKII
- we edit the file C: \ lufa-master \ Projects \ AVRISP-MKII \ Config \ AppConfig.h (we allow switching compatibility modes):
- we edit the file C: \ lufa-master \ Projects \ AVRISP-MKII \ Lib \ V2ProtocolParams.h (here we indicate the compatibility of firmware version 1.8):
#define FIRMWARE_VERSION_MINOR 0x18
assembly:- open the command line AS 7 command promt and write commands line by line:
cd C:\lufa-master\Projects\AVRISP-MKII\ make all
- after this, in this (C: \ lufa-master \ Projects \ AVRISP-MKII \) directory, the hex file of the firmware should appear (which is flashed using Flip by entering the programmer in DFU mode);
- after the firmware, the compatibility mode in the programmer is selected by pressing RESET and stored in memory;
- to clean the directory from the compilation results, you can run the following command
make clean
3. Setting up the OS- Download
Zadig . Zadig is a USB driver manager for Windows, allows you to replace the driver. The latest version comes with a libusb-win32 (v1.2.6.0) driver.
- Open Zadig, Options, List All Devices. From the list, select AVRISP mkII (before, when you first connect the programmer, you should change the mode).
- Change the current driver to libusb-win32 (v1.2.6.0)
No reboot required.