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:
|Tool||Version||Zak’s build version|
|AVR-LibC||SVN with extras||SVN with extras|
|Make||4.3||4.2.1 (only on Windows packages)|
|AVRDUDE||6.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:
- avr-gcc-10.2.0.tar.gz (Original file, from compilation output, without anything more)
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:
- Download and extract one of the downloads above (select the mirror you want)
- Navigate to your Arduino IDE folder
- Go to hardware/tools
- 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)
- Move the extracted folder from earlier to the tools folder and rename it to avr
- Copy the builtin_tools_versions.txt file and etc folder from the old avr folder to the new one
- Done! Open up the Arduino IDE, load up the Blink example, upload it to your Arduino and make sure the LED is blinking!
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.
Thanks for reading the entire post!