Author Topic: AVR programming in Linux using C and C++  (Read 4019 times)

0 Members and 1 Guest are viewing this topic.

Offline MarkBrownTopic starter

  • Full Member
  • ***
  • Posts: 77
  • Helpful? 0
    • Mark's Projects
AVR programming in Linux using C and C++
« on: September 01, 2008, 06:48:33 PM »
Since finding this site, I have setup a laptop dedicated to robotics.  Over the weeekend, I decided to put Linux on it as a dual boot.  I have read that it is difficult to setup a Linux machine to do AVR programming and I wanted to find out for myself.  It has actually gone really well, and has been alot easier than I could have anticipated.  I plan to write up a tutorial on it in order to help anyone else wanting to do the same.

More to the point of the post though, I currently have both C and C++ code compiling for AVR in Linux.  I am currently working on the programming of the chip now, both the ATmega8 and the ATmega640.  I am using the AVRISP mkII programmer and will be using AVRDUDE to write to the chip.  Does anyone have experience using AVRDUDE that could save me some time in reading all the documentation?

Thanks,

Mark
It is human nature to confuse genious with insanity

http://marksproject.blogspot.com/

Offline MarkBrownTopic starter

  • Full Member
  • ***
  • Posts: 77
  • Helpful? 0
    • Mark's Projects
Re: AVR programming in Linux using C and C++
« Reply #1 on: September 01, 2008, 11:54:35 PM »
Nevermind.  The manual for AVRDUDE was smaller than I thought.  I got the answers that I need and have verified it works.  I will work on putting together a tutorial soon for any who is interested.

Mark
It is human nature to confuse genious with insanity

http://marksproject.blogspot.com/

Offline javafiend

  • Robot Overlord
  • ****
  • Posts: 125
  • Helpful? 0
Re: AVR programming in Linux using C and C++
« Reply #2 on: September 02, 2008, 08:17:23 AM »
I program my AVR on Linux using AVRDude and CodeBlocks as my IDE.  It took a little getting used to, but I think it's worth it.

I look forward to reading about your experiences and Linux settup.

Offline brainwave

  • Jr. Member
  • **
  • Posts: 16
  • Helpful? 0
Re: AVR programming in Linux using C and C++
« Reply #3 on: July 06, 2011, 10:39:12 AM »
Check out the video: with codeblocks.....its simple really! Video1

 


data_list