MHV AVR Tools - A WinAVR Replacement
deece — Sat, 05/11/2011 - 8:55am
We have built our own set of tools in a WinAVR-like layout suitable for use as a replacement. Please note that no guarantees as to fitness or suitability are being made. In particular,GCC 4.6.x has not been tested as extensively as GCC 4.4.x, so use our builds at your own risk.
For those building with AVR-Eclipse, a patch that teaches it about the new environment is available on the AVR Eclipse feature request tracker. To make life easier, I have a replacement jar available. Just copy it to eclipse/plugins after installing AVR-Eclipse.
Installing the Binary Package
Download and run the installer (.exe on windows, or .runme on linux & osx) from the bottom of this page.
Installing from Source
Windows Dependancies
Install the MinGW development environment
- Download and install mingw-get-inst from http://sourceforge.net/projects/mingw/files/, select all developer options
- Install the following components
-
mingw-get install msys-wget
-
mingw-get install msys-unzip
-
Install Git
- Download and install Git for Windows
Linux Dependancies
You will need to install the following utilities on your Linux installation in order to compile MHV AVR Tools
- gcc
- g++ (gcc-c++)
- git
- patch
- wget
- bison
- flex
- texinfo
- zip/unzip
Build & Install MHV AVR Tools
- Clone the MHV AVR Tools git repository:
git clone http://git.makehackvoid.com/mhvavrtools.git
- Within your MinGW environment...
- cd to the mhvavrtools directory
- run fetch.sh to download the required sources
- run build.sh to compile the components
- run build-archive.sh to package the distributable (unix only)
Todo
- Support xmega microcontrollers
- Include MHVlib
- Add fixed-point support
Source Browser
You can view the changelog and source code online in our git repository.
Downloads
Development
- Login or register to post comments
- Printer-friendly version



Usage with AVR Studio
Mark 83 — Sat, 14/04/2012 - 6:11amIs it possible to use this toolchain as a drop-in replacement for the AVR GNU Toolchain which I currently use with AVR Studio 4 ? Are there any config files in AVR Studio that can be adapted to force it to use this toolchain?
Not sure
deece — Thu, 26/04/2012 - 7:58amHi Mark,
Sorry, I haven't tried this myself. In principle, it should be possible so I suggest you give it a try, and let us know how you went.
Forgot to reply. While I
Mark 83 — Tue, 01/05/2012 - 1:05amForgot to reply. While I couldn't find a solution to direct integration of this toolchain with AVR Studio 4.19 (build 730), there is always a project specific workaround. In the configuration options for your project, AVR Studio asks for the location of the AVR-GCC exceutable and the make executable. If you make it point to MHV-AVR toolchain executables, it works out of the box. Only issue is that you have to set this configuration everytime you start a new project. Either way, great job (and ty) for this toolchain.