
{"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<p>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<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Using with Atmel Studio<\/h2>\n\n\n\n<p>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<p>Run Studio and choose <strong>Tools -&gt; Program AVR -&gt; Connect<\/strong> and this dialog appears<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/atmelstudio1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"301\" src=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/atmelstudio1.jpg\" alt=\"\" class=\"wp-image-1655\" srcset=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/atmelstudio1.jpg 526w, https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/atmelstudio1-300x172.jpg 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/a><figcaption class=\"wp-element-caption\">Choose AVRISP-mkII and click Connect<\/figcaption><\/figure>\n\n\n\n<p>Atmel Studio help gives lots more details on using AVRISP mkII in Studio.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using with AVRDUDE<\/h2>\n\n\n\n<p>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<h3 class=\"wp-block-heading\">Changing USB driver<\/h3>\n\n\n\n<p>Luckily, other people have solved this problem and there are free solutions that make this task much easier. Here we will use <strong>ZADIG,<\/strong> which is a free GNU USB driver installer, because it makes it really simple.<\/p>\n\n\n\n<p>Download  ZADIG from here <a href=\"https:\/\/zadig.akeo.ie\/\" data-type=\"URL\" data-id=\"https:\/\/zadig.akeo.ie\/\">https:\/\/zadig.akeo.ie\/<\/a><\/p>\n\n\n\n<p>a. Install ZADIG<br>b. Run ZADIG<br>c. Select <strong>Options <\/strong>and check <strong>List All Devices<\/strong><br>d. Then, select the AVRISP mkII in the drop down list<\/p>\n\n\n\n<p>e. Change Driver to Libusb-win32<\/p>\n\n\n\n<p>f. Click Replace Driver<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/zadig-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"589\" height=\"260\" src=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/zadig-1.jpg\" alt=\"\" class=\"wp-image-1657\" srcset=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/zadig-1.jpg 589w, https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/zadig-1-300x132.jpg 300w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/a><figcaption class=\"wp-element-caption\">Change driver to libusb-win32<\/figcaption><\/figure>\n\n\n\n<p>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<h3 class=\"wp-block-heading\">AVRDude Software<\/h3>\n\n\n\n<p>The original AVRDude software is a command line but various GUI&#8217;s have been developed to make it nicer to use.Look on Sourceforge or other repositories for free versions. This example uses free  <strong>AVRDUDESS<\/strong>, which can be downloaded here <a href=\"https:\/\/blog.zakkemble.net\/avrdudess-a-gui-for-avrdude\/\">https:\/\/blog.zakkemble.net\/avrdudess-a-gui-for-avrdude\/<\/a><\/p>\n\n\n\n<p>AVRDUDESS interfaces looks like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/avrdudess5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"640\" src=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/avrdudess5.png\" alt=\"\" class=\"wp-image-1658\" srcset=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/avrdudess5.png 646w, https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/avrdudess5-300x297.png 300w, https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/avrdudess5-150x150.png 150w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/a><figcaption class=\"wp-element-caption\">AVRDUDESS GUI <\/figcaption><\/figure>\n\n\n\n<p>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<h2 class=\"wp-block-heading\">Use with Great Cow Basic<\/h2>\n\n\n\n<p>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&#8230;<\/p>\n\n\n\n<a href=\" https:\/\/sourceforge.net\/projects\/gcbasic\/\">Download Great Cow Basic<\/a>\n\n\n\n<p><\/p>\n\n\n\n<p>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<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/gc1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"475\" src=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/gc1.jpg\" alt=\"\" class=\"wp-image-1659\" srcset=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/gc1.jpg 496w, https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/gc1-300x287.jpg 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/a><figcaption class=\"wp-element-caption\">Select Kanda programmer from list<\/figcaption><\/figure>\n\n\n\n<p>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&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/gc2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"486\" src=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/gc2.jpg\" alt=\"\" class=\"wp-image-1660\" srcset=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/gc2.jpg 761w, https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/gc2-300x192.jpg 300w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/a><figcaption class=\"wp-element-caption\">Programmer Editor Box<\/figcaption><\/figure>\n\n\n\n<p>a. Name as : AVR ISP XPII [KANDA]<br>b. File as: %instdir%..\\avrdude\\avrdude.exe<br>c. Command Line Parameters as: -c avrispv2 -P usb -p AT%chipmodel%<br>-U flash:w:&#8221;%filename%&#8221;:i<br>d. Working directory as: %instdir%..\\avrdude\\<br>e. Optionally, you can add Use If as: DEF(AVR)<br>f. Select OK to save the programmer<br>g. Select AVR ISP XPII [KANDA] and drag to top of the \u2018Programmers to use (in order)\u2019 list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">AVRISP-MKII<\/h2>\n\n\n\n<p>AVRISP-MKII programmer is available here on Kanda website<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/AVRISP-MkII.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/www.kanda.com\/blog\/wp-content\/uploads\/AVRISP-MkII.gif\" alt=\"AVRISP MKII AVR Programmer\" class=\"wp-image-2012\"\/><\/a><figcaption class=\"wp-element-caption\">AVRISP-MKII ISP Programmer<\/figcaption><\/figure>\n\n\n\n<a href=\"\/products\/Kanda\/AVRISP-MKII.html\">Buy AVRISP-MKII<\/a>\n\n\n\n<p>  <\/p>\n\n\n\n<p>That&#8217;s all folks! You can now use your AVR ISP II with AVRDude and Great Cow Basic.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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],"class_list":["post-1654","post","type-post","status-publish","format-standard","has-post-thumbnail","placeholder-for-hentry","category-avr-microcontrollers","category-microcontrollers","tag-avr-microcontroller"],"_links":{"self":[{"href":"https:\/\/www.kanda.com\/blog\/wp-json\/wp\/v2\/posts\/1654","targetHints":{"allow":["GET"]}}],"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}]}}