Tuesday, February 26, 2013

AVR programming: Open Source saves the day

It was a long time since I last program an AVR micro and last time I did it I was using this programmer:
That I got from microcontroller shop.

So I installed AVR studio 6.0 in my Windows PC (which took ages, BTW), wrote a blinking LED program, set up the programmer and to my surprise flashing the ATMEGA failed. Seems like AVR Studio does not support this particular flavour of programmer. So I went back to AVR Studio 4.XX (don't remember the XX, but the latest AVR studio 4 available in Atmel's website) with same results. After searching for alternatives, I found WinAVR, which I managed to get to work fairly easily (with the help of ladyada's avrdude tutorial). Since it was using AVRDUDE for flashing and that is available for Linux also (and the nice atmel IDE was not good for me anymore), I decided to forget about Windows completely and develop for AVR in Linux. Found this explanation on how to use codeblocks for AVR programming, which is great, cause all the project (the VA synth and the Monome stuff) I did using codeblocks already, so that means I have the whole thing using a single development environment.
So, big thanks to everyone who anonymously helped me get this to work and in general to the open source comunity.

No comments:

Post a Comment