Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Atmel AVR development in Gentoo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
barfo
Apprentice
Apprentice


Joined: 04 Mar 2006
Posts: 163

PostPosted: Tue Mar 07, 2006 2:47 pm    Post subject: Atmel AVR development in Gentoo? Reply with quote

I've just set up a new gentoo system and am looking into using it for my home uP development, rather than my windows laptop. I imagine I can setup avrlib and compilers without problem, however am interested in any IDEs that support avr development. Is it safe to assume that I can configure Anjuta to compile avr code? Are there any linux-native development suites similar to CodeVision?

Also, how reliable is AVRdude with homemade programmers? I'm afraid of finding a great review of a programmer/software kit and building it, then finding that it has quirks with some controllers or other hardware - I've done that before.

As this pertains to uPs and programmers, I thought this was the correct forum... Perhaps it belongs under Portage and Programming?

Thanks for any info.
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Thu Mar 09, 2006 3:58 pm    Post subject: Reply with quote

I spent hours trying to get avrdude to work with a developement board (STK 500) just to find it didn't work with that revision of the board. I don't remember if I had version 2.0 or 1.x of the board, unfortunately. I ended up using AVR Studio from Windows, so don't take anything for granted.
This is a while ago though (maybe a year or so), and things might have improved. I have no idea how it would work with anything homemade. Of course, it's open source, so there's always the possibility of making it work.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
Vaclav Vanc
n00b
n00b


Joined: 07 Mar 2006
Posts: 2

PostPosted: Thu Mar 09, 2006 4:05 pm    Post subject: Reply with quote

I have same problem, I like AVR Cross Development Kit (http://sourceforge.net/projects/cdk4avr/), but ebuild doesn't exist...
Back to top
View user's profile Send private message
barfo
Apprentice
Apprentice


Joined: 04 Mar 2006
Posts: 163

PostPosted: Fri Mar 10, 2006 4:04 pm    Post subject: Reply with quote

well that's discouraging...

i'll check out cdk4avr, i've only glanced at it as of yet.

anyone have any experience developing with gvv for avr? it might be a two weeks or so before i set it up, and i'm trying to collect any useful information.

i'm always amazed at how difficult it is for hobbyists to find useful information about some topics pertaining to linux. i cannot believe i'm the only guy that uses gentoo and plays with uPs in my spare time... there have to be well documented, reliable and simple opensource alternatives out there somewhere.
Back to top
View user's profile Send private message
jetblack101
n00b
n00b


Joined: 17 Jan 2005
Posts: 16

PostPosted: Sun Jun 25, 2006 6:25 am    Post subject: Reply with quote

I use crossdev, which is a cross compiling script in portage.
This will setup you up with everything you need for compiling avr programs.
Code:
 crossdev -t avr

As for programming it check out http://tuxgraphics.org/electronics/200411/article352.shtml. The parallel port programmer on there is extremely cheap so I believe it is the only way to go. The uisp program used for compiling with the cable is in portage as well. Also, I have built all my projects from scatch so I have no idea how any of this stuff would work with a dev board, but if the both use the isp programming capability it should work. Best of luck on your projects.
Back to top
View user's profile Send private message
zatalian
Apprentice
Apprentice


Joined: 27 Aug 2002
Posts: 179
Location: Gent, Belgium

PostPosted: Tue Oct 31, 2006 4:56 pm    Post subject: Reply with quote

I just started using avr's with the atmega168. To program the controllers i use a self made ftdi usb to serial converter and the avr109 bootloader from atmel. This works extremly well (and very fast). To get it working was not that easy though. I had to do some programming...

1. install avr development tools with crossdev -t avr as mentioned.
2. download uisp and modify the code so that more than 1 pin can be inverted
3. Now you can program the controller using the dasa3 bitbanging way
4. I had to modify uisp again because it was not capable of programming the efuse of the atmega168
5. download, configure and compile the avr109 bootloader from the atmel site
6. use uisp to flash the bootloader in the controller
7. use uisp to set the fuses correct
8. use avrdude to program the controller via the bootloader from now on :-)

It seems a lot of work, but all of it is a one time job. After that, the controller can be programmed as much as you want using the bootloader. By the way, all this is done with less than 20€ components, inclusief a 10€ breadboard.

I thought somebody mentioning avr's in a positive way was needed in this thread :twisted:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum