Good news! Today I have released avr-gcc version 10.2.0 for Windows (x86 and x64) and Linux (x64).

avr-gcc is a set of AVR compilers for C, C++ and Assembly. The problem is that the official avr-gcc was compiled on 2015, so it hasn’t got all the new C++17, C++20 and C18 standards. That’s why I have compiled the compilers again, to have the latest standards and improvements 😉.

WARNING: This is NOT an official version of avr-gcc, so it may contain bugs.

Also, I would like to thank Zak Kemble (www.zakkemble.net) for distributing avr-gcc 10.1.0 and the compilation steps.

Tools included in each package and comparison:
ToolVersionZak’s build version
GCC10.2.010.1.0
Binutils2.35.12.34
AVR-LibCSVN with extrasSVN with extras
GDB10.19.2
Make4.34.2.1 (only on Windows packages)
AVRDUDE6.3 (only on Windows packages)6.3 (only on Windows packages)
DOWNLOAD LINKS (yes, I know you want ’em):

You can download the files at:

Installation instructions:

You will need 7-zip if you are using windows to extract the files (WinRAR also works). Download 7-zip.

Just extract the file with your OS and architecture. Then the AVR executables are located at the bin folder.

If you want to install it for Arduino:

Also provided by Zak Kemble:

  1. Download and extract one of the downloads above (select the mirror you want)
  2. Navigate to your Arduino IDE folder
  3. Go to hardware/tools
  4. Move the avr folder somewhere else, like to your desktop (renaming the folder won’t work, Arduino has some auto-detect thing which sometimes gets confused)
  5. Move the extracted folder from earlier to the tools folder and rename it to avr
  6. Copy the builtin_tools_versions.txt file and etc folder from the old avr folder to the new one
  7. Done! Open up the Arduino IDE, load up the Blink example, upload it to your Arduino and make sure the LED is blinking!
Build script:

Here is a modified build script I have created with the tools versions updated.

It’s HIGHLY RECOMMENDED that you compile it using Debian 10 x64, else it may not work. Also, it took me more than three hours to fully compile AVR-GCC. Extra tools (make, AVRDUDE) have been added/compiled later.

Finally, you will need to copy the contents of the avr-libc folder into all the releases of avr-gcc to make it usable.

Enjoy building!

Thanks for reading the entire post!

Categories: Releases

Lumito

A junior open-source developer on GitHub (github.com/LumitoLuma) and owner of this website (www.lumito.net). His favourite programming language is C#, followed by C++, C and Java.

0 Comments

Leave a Reply