{"id":3304,"date":"2010-10-29T00:20:29","date_gmt":"2010-10-29T05:20:29","guid":{"rendered":"http:\/\/mightyohm.com\/blog\/?p=3304"},"modified":"2015-09-26T11:11:01","modified_gmt":"2015-09-26T18:11:01","slug":"avr-toolchain-installation-instructions-for-windows-mac-os-x-linux","status":"publish","type":"post","link":"https:\/\/mightyohm.com\/blog\/2010\/10\/avr-toolchain-installation-instructions-for-windows-mac-os-x-linux\/","title":{"rendered":"AVR Toolchain Installation Instructions for Windows, Mac OS X, Linux"},"content":{"rendered":"<div>\n<p><a href=\"http:\/\/mightyohm.com\/blog\/wp-content\/uploads\/2010\/10\/winavr.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3269\" data-permalink=\"https:\/\/mightyohm.com\/blog\/tutorials\/avr-toolchain-installation\/windows\/winavr\/\" data-orig-file=\"https:\/\/mightyohm.com\/blog\/wp-content\/uploads\/2010\/10\/winavr.png\" data-orig-size=\"922,621\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"WinAVR\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/mightyohm.com\/blog\/wp-content\/uploads\/2010\/10\/winavr.png\" class=\"alignnone size-medium wp-image-3269\" title=\"WinAVR\" src=\"http:\/\/mightyohm.com\/blog\/wp-content\/uploads\/2010\/10\/winavr-500x336.png\" alt=\"\" width=\"500\" height=\"336\" srcset=\"https:\/\/mightyohm.com\/blog\/wp-content\/uploads\/2010\/10\/winavr-500x336.png 500w, https:\/\/mightyohm.com\/blog\/wp-content\/uploads\/2010\/10\/winavr.png 922w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.cornfieldelectronics.com\">Mitch Altman<\/a> and I are in the process of writing a book about Making Cool Things with Microcontrollers (for people who know nothing.)<\/p>\n<p>The book features several DIY projects that use <a href=\"http:\/\/atmel.com\/products\/avr\/default.asp?family_id=607&amp;source=home\">AVR<\/a> microcontrollers. \u00a0We&#8217;re aiming to teach absolute beginners how to solder, basic electronics, and the process of turning a cool idea into reality by using microcontrollers.<\/p>\n<p>I wrote these instructions about setting up a working avr-gcc environment in Windows, Mac OS X, or Linux. \u00a0Mitch and I felt that they could use some beta testing in the real world before bring included in the book, so we decided to make them available here. \u00a0We also felt that they might help some people get started with AVRs before the book is available.<\/p>\n<p>We want to make the process of writing and compiling code for the AVR simple and accessible, so we&#8217;re not using any fancy IDEs (eg. no <a href=\"http:\/\/www.atmel.com\/dyn\/products\/tools_card.asp?tool_id=2725\">AVR Studio<\/a>). \u00a0We also wanted to use the same software on all three operating systems, so Windows-only tools were out. \u00a0Instead, we&#8217;re using avr-gcc, the compiler behind WinAVR, CrossPack, and Arduino.<\/p>\n<p>I would appreciate any feedback on these instructions.<\/p>\n<p>Here they are:<\/p>\n<p><a href=\"http:\/\/mightyohm.com\/blog\/tutorials\/avr-toolchain-installation\/windows\">Windows<\/a><\/p>\n<p><a href=\"http:\/\/mightyohm.com\/blog\/tutorials\/avr-toolchain-installation\/mac-os-x\">Mac OS X<\/a><\/p>\n<p><a href=\"http:\/\/mightyohm.com\/blog\/tutorials\/avr-toolchain-installation\/linux\">Linux<\/a><\/p>\n<p><strong>Update:<\/strong> I totally rewrote this post after getting feedback that I didn&#8217;t properly identify my target audience and explain why I chose avr-gcc. \u00a0Sorry!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Mitch Altman and I are in the process of writing a book about Making Cool Things with Microcontrollers (for people who know nothing.) The book features several DIY projects that use AVR microcontrollers. \u00a0We&#8217;re aiming to teach absolute beginners how to solder, basic electronics, and the process of turning a cool idea into reality by &hellip; <a href=\"https:\/\/mightyohm.com\/blog\/2010\/10\/avr-toolchain-installation-instructions-for-windows-mac-os-x-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">AVR Toolchain Installation Instructions for Windows, Mac OS X, Linux<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[10,432],"tags":[61,343,359,361,66,358,332,360,346],"class_list":["post-3304","post","type-post","status-publish","format-standard","hentry","category-microcontrollers","category-tutorials","tag-avr","tag-avr-gcc","tag-avrbook","tag-crosspack","tag-linux","tag-osx","tag-ubuntu","tag-winavr","tag-windows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pioCd-Ri","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1682,"url":"https:\/\/mightyohm.com\/blog\/2009\/05\/avr-eclipse-and-the-mac\/","url_meta":{"origin":3304,"position":0},"title":"AVR, Eclipse and the Mac","author":"Jeff","date":"May 12, 2009","format":false,"excerpt":"Pete Harrison at Micromouse Online wrote a short tutorial about using Eclipse to program AVRs. \u00a0 Eclipse is\u00a0 an open source IDE that is supported on many platforms, including OS X on the Mac. I have never used Eclipse myself, so I can't vouch for how well this works, but\u2026","rel":"","context":"In &quot;Books and Resources&quot;","block_context":{"text":"Books and Resources","link":"https:\/\/mightyohm.com\/blog\/category\/books-and-resources\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.micromouseonline.com\/blog\/wp-content\/uploads\/2009\/03\/picture-1.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3076,"url":"https:\/\/mightyohm.com\/blog\/2010\/09\/avrisp-mkii-libusb-drivers-for-windows-7-vista-x64\/","url_meta":{"origin":3304,"position":1},"title":"AVRISP mkII libusb drivers for Windows 7 \/ Vista x64","author":"Jeff","date":"September 16, 2010","format":false,"excerpt":"Continuing on the theme of my last post, here are libusb-win32 drivers for the Atmel AVRISP mkII. Unlike the Atmel-supplied drivers, these support avrdude, and as a bonus they will install on the 64-bit version of Windows 7 without digital signature errors. Yes! avrispmkii_libusb-win32_1.2.1.0.zip Note that if you want to\u2026","rel":"","context":"In &quot;Microcontrollers&quot;","block_context":{"text":"Microcontrollers","link":"https:\/\/mightyohm.com\/blog\/category\/microcontrollers\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1419,"url":"https:\/\/mightyohm.com\/blog\/2009\/03\/introducing-the-avr-hv-rescue-shield\/","url_meta":{"origin":3304,"position":2},"title":"Introducing the AVR HV Rescue Shield","author":"Jeff","date":"March 11, 2009","format":false,"excerpt":"This all started last year, when I was playing with an ATmega168 microcontroller and did something silly.\u00a0 I programmed the RSTDISBL fuse bit, which effectively makes it impossible to reflash the chip using an ordinary (serial) programmer. Instead of giving up and throwing out the \"dead\" chip,\u00a0 I decided to\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/mightyohm.com\/blog\/category\/electronics\/"},"img":{"alt_text":"AVR HV Rescue Shield with ATmega168 target ","src":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2009\/03\/rescue-shield-with-atmega2_scaled-500x375.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2343,"url":"https:\/\/mightyohm.com\/blog\/2009\/09\/looking-for-feedback-on-the-avr-hv-rescue-shield\/","url_meta":{"origin":3304,"position":3},"title":"Looking for feedback on the AVR HV Rescue Shield","author":"Jeff","date":"September 9, 2009","format":false,"excerpt":"Back in March, I released the AVR HV Rescue Shield, my first open source hardware kit.\u00a0 The AVR HV Rescue Shield is a high voltage parallel mode fuse programmer for Atmel AVR microcontrollers. Since then, I've sold dozens of kits around the world. If you bought a kit, I want\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/mightyohm.com\/blog\/category\/electronics\/"},"img":{"alt_text":"AVR HV Rescue Shield","src":"https:\/\/i0.wp.com\/www.mightyohm.com\/blog\/wp-content\/uploads\/2009\/03\/rescue-shield-installed-close_scaled-500x375.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":968,"url":"https:\/\/mightyohm.com\/blog\/2009\/01\/avr-hv-programmer-shield-in-the-works\/","url_meta":{"origin":3304,"position":4},"title":"AVR HV Programmer Shield in the Works!","author":"Jeff","date":"January 2, 2009","format":false,"excerpt":"What's this??? In response to the continued demand for a PCB version of my Arduino-based AVR High Voltage Programmer, I just released a first cut to BatchPCB and should have a prototype within 3-4 weeks. This design is an improvement upon the original HV programmer shield in the following areas:\u2026","rel":"","context":"In &quot;Microcontrollers&quot;","block_context":{"text":"Microcontrollers","link":"https:\/\/mightyohm.com\/blog\/category\/microcontrollers\/"},"img":{"alt_text":"hvfuse_shield3_brd","src":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2009\/01\/hvfuse_shield3_brd-424x500.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2063,"url":"https:\/\/mightyohm.com\/blog\/2009\/07\/atmel-retiring-atmega4888168-microcontrollers\/","url_meta":{"origin":3304,"position":5},"title":"Atmel retiring ATmega48\/88\/168 microcontrollers","author":"Jeff","date":"July 3, 2009","format":false,"excerpt":"Has anyone else noticed that the ATmega48\/88\/168 family of 8-bit AVR microcontrollers recently joined Atmel's \"mature devices\" list, shown above? Truthfully, I was not surprised to see this, having been tipped off by an Atmel sales rep earlier this year at ESC in San Jose. The good news is that\u2026","rel":"","context":"In &quot;Microcontrollers&quot;","block_context":{"text":"Microcontrollers","link":"https:\/\/mightyohm.com\/blog\/category\/microcontrollers\/"},"img":{"alt_text":"Atmel AVR Microcontrollers - Mature Devices","src":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2009\/07\/avr_mature.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/3304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/comments?post=3304"}],"version-history":[{"count":13,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/3304\/revisions"}],"predecessor-version":[{"id":4736,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/3304\/revisions\/4736"}],"wp:attachment":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/media?parent=3304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/categories?post=3304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/tags?post=3304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}