{"id":1654,"date":"2021-01-19T12:13:01","date_gmt":"2021-01-19T11:13:01","guid":{"rendered":"https:\/\/www.kanda.com\/blog\/?p=1654"},"modified":"2023-09-06T10:40:48","modified_gmt":"2023-09-06T09:40:48","slug":"how-to-use-avrisp-mkii-with-avrdude-and-great-cow-basic","status":"publish","type":"post","link":"https:\/\/www.kanda.com\/blog\/microcontrollers\/how-to-use-avrisp-mkii-with-avrdude-and-great-cow-basic\/","title":{"rendered":"How to use AVRISP-MKII with AVRDUDE and Great cow basic"},"content":{"rendered":"\n

Atmel have stopped making AVRISP-MKII but Kanda sell a Waveshare version that is identical to the original. Atmel Studio fully supports AVRISP-MKII and it is simple to install and use with Studio but it can also be used with AVRDude and Great Cow Basic compiler.<\/p>\n\n\n\n\n\n\n\n

Using with Atmel Studio<\/h2>\n\n\n\n

Just to refresh your memory or for new users, AVRISP-MKII is really easy to use with Studio. Just plug in the programmer and Windows will Auto-detect and install the USB driver. <\/p>\n\n\n\n

Run Studio and choose Tools -> Program AVR -> Connect<\/strong> and this dialog appears<\/p>\n\n\n\n

\"\"<\/a>
Choose AVRISP-mkII and click Connect<\/figcaption><\/figure>\n\n\n\n

Atmel Studio help gives lots more details on using AVRISP mkII in Studio.<\/p>\n\n\n\n

Using with AVRDUDE<\/h2>\n\n\n\n

AVRDUDE is free software used to program AVR microcontrollers, including Arduino boards. It uses the free GNU LibUSB driver rather than the default Microchip driver used by Atmel Studio, so the first task is to change the driver.<\/p>\n\n\n\n

Changing USB driver<\/h3>\n\n\n\n

Luckily, other people have solved this problem and there are free solutions that make this task much easier. Here we will use ZADIG,<\/strong> which is a free GNU USB driver installer, because it makes it really simple.<\/p>\n\n\n\n

Download ZADIG from here https:\/\/zadig.akeo.ie\/<\/a><\/p>\n\n\n\n

a. Install ZADIG
b. Run ZADIG
c. Select Options <\/strong>and check List All Devices<\/strong>
d. Then, select the AVRISP mkII in the drop down list<\/p>\n\n\n\n

e. Change Driver to Libusb-win32<\/p>\n\n\n\n

f. Click Replace Driver<\/p>\n\n\n\n

\"\"<\/a>
Change driver to libusb-win32<\/figcaption><\/figure>\n\n\n\n

Plug and re-plug your programmer for the new driver to take effect. Your AVRISP-MKII is now set to work with AVRDude software.<\/p>\n\n\n\n

AVRDude Software<\/h3>\n\n\n\n

The original AVRDude software is a command line but various GUI’s have been developed to make it nicer to use.Look on Sourceforge or other repositories for free versions. This example uses free AVRDUDESS<\/strong>, which can be downloaded here https:\/\/blog.zakkemble.net\/avrdudess-a-gui-for-avrdude\/<\/a><\/p>\n\n\n\n

AVRDUDESS interfaces looks like this.<\/p>\n\n\n\n

\"\"<\/a>
AVRDUDESS GUI <\/figcaption><\/figure>\n\n\n\n

Connect your target AVR board or Arduino and read and write as normal. Read the documentation with AVRDudeSS if you are not familiar with programming software.<\/p>\n\n\n\n

Use with Great Cow Basic<\/h2>\n\n\n\n

Great Cow Basic is based on QBasic\/FreeBasic, with the syntax changed enough to make it suitable for microcontrollers. It supports PIC and AVR devices, including Arduino. It offers a simpler solution than assembly language or C. It is open source and can be downloaded here…<\/p>\n\n\n\nDownload Great Cow Basic<\/a>\n\n\n\n

<\/p>\n\n\n\n

Run your Great Cow basic IDE and select Programmer Preferences. Select AVR ISP-XPII[KANDA] from the list of supported programs.<\/p>\n\n\n\n

\"\"<\/a>
Select Kanda programmer from list<\/figcaption><\/figure>\n\n\n\n

If this programmer is not shown in the list, you will need to add it. Select Add to bring up the Programmer Editor and follow the instructions…<\/p>\n\n\n\n

\"\"<\/a>
Programmer Editor Box<\/figcaption><\/figure>\n\n\n\n

a. Name as : AVR ISP XPII [KANDA]
b. File as: %instdir%..\\avrdude\\avrdude.exe
c. Command Line Parameters 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 \u2018Programmers to use (in order)\u2019 list.<\/p>\n\n\n\n

AVRISP-MKII<\/h2>\n\n\n\n

AVRISP-MKII programmer is available here on Kanda website<\/p>\n\n\n\n

\"AVRISP<\/a>
AVRISP-MKII ISP Programmer<\/figcaption><\/figure>\n\n\n\nBuy AVRISP-MKII<\/a>\n\n\n\n

<\/p>\n\n\n\n

That’s all folks! You can now use your AVR ISP II with AVRDude and Great Cow Basic.<\/p>\n","protected":false},"excerpt":{"rendered":"

Atmel have stopped making AVRISP-MKII but Kanda sell a Waveshare version that is identical to the original. Atmel Studio fully supports AVRISP-MKII and it is simple to install and use with Studio but it can also be used with AVRDude and Great Cow Basic compiler.<\/p>\n","protected":false},"author":1,"featured_media":2016,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,3],"tags":[42],"_links":{"self":[{"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/posts\/1654"}],"collection":[{"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/comments?post=1654"}],"version-history":[{"count":8,"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/posts\/1654\/revisions"}],"predecessor-version":[{"id":2018,"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/posts\/1654\/revisions\/2018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/media\/2016"}],"wp:attachment":[{"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/media?parent=1654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/categories?post=1654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/tags?post=1654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}