New website for the project: https://avr.lumito.net/

Builds won’t be updated in this post.


Here I will post my compiled avr-gcc packages/releases. They are available for Windows (x86 and x64) and Linux (x64 only).

Latest release: avr-gcc 10.3.0

Latest legacy release: avr-gcc 8.4.0 (see legacy releases section)

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 script.

Tools included in each package and comparison:
Tool10.3.010.2.0
GCC10.3.010.2.0
Binutils2.36.12.35.1
AVR-LibCLatest (fork, master, October 2020)SVN with extras (release, July 2019)
AVR-libstdc++Latest (master, January 2021)None
GDB10.110.1
MakeNot included (can be downloaded)*4.3
AVRDUDENot included (can be downloaded)*6.3 (only on Windows packages)
DOWNLOAD LINKS (yes, I know you want ’em):
Useful tools:

* Here you can download extra tools like Make and AVRDUDE that may be useful for avr-gcc:

LEGACY RELEASES:

I also provide legacy versions of avr-gcc, specially designed for production environments. These builds haven’t got the latest features, but are the most stable and the ones that generate best code.

Legacy downloads are available through this link.

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.

Known issues:

avr-gcc 10.3.0 & 8.4.0 does not work with the Arduino megaAVR boards package. Use Arduino’s build instead

If you want to install it for Arduino:

Most part also provided by Zak:

  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 from the old avr folder to the new one
  7. Download AVRDUDE from the ‘useful tools’ section and extract it to the new avr folder. This includes a very updated AVRDUDE version.
  8. 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!

UPDATE: avr-gcc 10.3.0 contains manually modified files (such as avr-man) to fix some issues. If future releases, the script will also patch them. There is no build script for legacy releases.

Categories: AVRReleases

Lumito

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

0 Comments

Leave a Reply

Avatar placeholder