This is a review of the KANDA AVRISP-MKII programmer, and, how to get the programmer operational in Great Cow BASIC.
The programmer is very easy to install and use. A great addition to my programmer toolkit.
The KANDA AVRISP-MKII programmer only took a few minutes to setup and it is very easy to use.
Enjoy.
Overview of the KANDA AVRISP-MKII
The KANDA AVRISP-MKII is a programmer AVR microcontrollers that be either integrated into the AVRStudio development environment or used with AVRDUDE.
The programmer has support for all AVR devices using serial programming (ISP), also supports Xmega PDI interface and ATtiny TDI interface.
This is a review of a Waveshare product. This programmer is intended to be completely compatible with the original Atmel product. Atmel have stopped making their ATAVRISP2 programmer.
KANDA AVRISP-MKII Support
The programmer supports
• programming of progmem flash, eeprom memory, fuses and lock bits.
• target voltages from 1.6V to 5.5V
• various programming speeds from (50Hz to 8MHz serial clock frequency
• USB 2.0
• powering the from USB
• short-circuit protection
Installation
The installation was simple. Unboxed and plug in.
The packaging was very nice, with an installation mini CD ( a tad odd nowadays) and a suite of cable that will cover most connection options.
Plugging the programmer in the computer gives the typical USB event alert, and, my Windows 10 installed the default Microchip device driver. This was good.
Getting operational
AVR Studio: The installation CD and the instructions address the use of the programmer with AVR Studio – so I will not repeated. I will focus on AVRDUDE and the integration into the Great Cow BASIC
Before you use the programmer do the following:
1. Change the default Windows driver.
2. Configure the Great Cow BASIC IDE.
Change the default Windows driver
The default is intended for integration with AVR Studio so we need to change to a driver that will work with AVRDUDE. We will use ZADIG to change the windows driver, for ZADIG see https://zadig.akeo.ie
a. Install ZADIG
b. Execute ZADIG
c. Select Options and check List All devices.
d. Then, select the AVRISP mkII in the drop down menu
e. Select libusb-win32 in the driver options drop down menu
f. Select Replace Driver and wait … this can take some time…
The dialog when the driver is installed.
g. Disconnect and reconnect the programmer
h. You can now select the programmer in AVRDUDE as Atmel AVR ISP mkII
and the port as USB
I attached an UNO via the programming lead provided, and, applied power to the UNO shield.
The diagram above shows the programmer and USB selected, when selecting the ‘Detect’ button the UNO responded correctly.
>>>: avrdude -u -c avrispv2 -P usb -p m8 Detected 1e950f = ATmega328P
Configure the Great Cow BASIC IDE.
To use with the Great Cow BASIC IDE use the Programmer Preferences to select the ‘AVR ISP XPII [KANDA]’ programmer. Then, simply create your program and program as normal.
If ‘AVR ISP XPII [KANDA]’ is not listed then ‘add’ a new programmer as follows:
a. Name as : AVR ISP XPII [KANDA]
b. File as: %instdir%..\avrdude\avrdude.exe
c. Command Line Paramerters as: -c avrispv2 -P usb -p AT%chipmodel% -U flash:w:"%filename%":i
d. Working directory as: %instdir%..\avrdude\
e. Optionally, you can add Use If as: DEF(AVR)
f. Select OK to save the programmer
g. Select AVR ISP XPII [KANDA] and drag to top of the ‘Programmers to use (in order)’ list.
When programming you will get message similar to this – note the ...AVR ISP XPII [KANDA] programmer was selected automatically,
*** G+Stool V20200921 www.FrankSteinberg.de >>fst'20<< *** *** useINI *** Great Cow BASIC Pre-processing (Copyright 2007..2021) d:\GCB@Syn38\GreatCowBasic\include\Inspecting_Libraries.h Make Hex and Program Great Cow BASIC (0.98.07 RC38 2021-01-07 (Windows 64 bit)) Compiling D:\GCB@Syn38\GreatCowBasic\Demos\first-start-sample.gcb ... Done Assembling program ... Program assembled successfully! Downloading program ...AVR ISP XPII [KANDA] avrdude.exe: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude.exe: Device signature = 0x1e950f (probably LGT8FX328P) avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude.exe: erasing chip avrdude.exe: reading input file "D:\GCB@Syn38\GreatCowBasic\Demos\first-start-sample.hex" avrdude.exe: writing flash (176 bytes): Writing | ################################################## | 100% 0.04s avrdude.exe: 176 bytes of flash written avrdude.exe: verifying flash memory against D:\GCB@Syn38\GreatCowBasic\Demos\first-start-sample.hex: avrdude.exe: load data flash data from input file D:\GCB@Syn38\GreatCowBasic\Demos\first-start-sample.hex: avrdude.exe: input file D:\GCB@Syn38\GreatCowBasic\Demos\first-start-sample.hex contains 176 bytes avrdude.exe: reading on-chip flash data: Reading | ################################################## | 100% 0.07s avrdude.exe: verifying ... avrdude.exe: 176 bytes of flash verified avrdude.exe: safemode: Fuses OK (E:FD, H:DA, L:FF) avrdude.exe done. Thank you.