OpenServo.com Forum Index OpenServo.com
Discussion of the OpenServo project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to build the AVR firmware?

 
Post new topic   Reply to topic    OpenServo.com Forum Index -> Software
View previous topic :: View next topic  
Author Message
Jan



Joined: 08 Apr 2007
Posts: 10
Location: Germany, Greifswald to be precise

PostPosted: Mon Apr 09, 2007 9:10 pm    Post subject: How to build the AVR firmware? Reply with quote

Hi all,

is there a FAQ or some kind of how-to guide that details the build process of the AVR firmware? I've downloaded the hourly snapshot, but I can't compile the software out of the ATmega8 AVRStudio project file.

Code:

c:\programme\winavr\bin\..\lib\gcc\avr\4.1.1\..\..\..\..\avr\bin\ld.exe: region text is full (ATmega8_OpenServo.elf section .text)


My AVRStudio installation is up to date, I've also installed the newest WinAVR version.

The ATmega168 project file compiles well with a program size of 6367 bytes. Why it doesn't fit into the ATmega8?


Thank you for your help,

Jan
Back to top
View user's profile Send private message
mpthompson



Joined: 02 Jan 2006
Posts: 650
Location: San Carlos, CA

PostPosted: Tue Apr 10, 2007 6:22 am    Post subject: Reply with quote

Hi Jan,

Unfortunately the ATmega8 has never been very well maintained. When I did the original port early last year I did build an ATmega8 OpenServo so it did work at one time. However, since then I don't think there has been much interest in the ATmega8 port because we could see that the feature set would eventually outgrow 8K flash. I would strongly suggest that you stick with the ATmega168 version as that is the chip being used for actively for OpenServo development at this time.

I'll see if I can get the ATmega8 version going again and post a follow up to this thread. I'll also review the documentation on the site and in the README's over the next two days and see what I can make some short-term improvements regarding building the firmware. In the meantime, if you have Yahoo! messenger you can IM me at michael_peter_thompson and I'll try to give you any real-time help that I can. Just remember I'm on Pacific time in the US which is about 8 to 9 hours behind Germany.

-Mike
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Jan



Joined: 08 Apr 2007
Posts: 10
Location: Germany, Greifswald to be precise

PostPosted: Tue Apr 10, 2007 3:27 pm    Post subject: Reply with quote

Hi Mike,

thank you for your help, but I changed my plans. I've ordered 20 pieces of the Mega168, because I don't want to put a lot of work into an outdated design.

I always thought the advantage of cvs systems to be in the possibility to keep every published version of the code available? But this is just my kind of naive view, because I never really used CVS software.

My WInCVS client refuses to work, I guess there's something wrong with my python setup. Whatever, I'll figure that out later.

Do you have an idea, during which period the Mega8 version was up and running, so I might try to get all the files from that date? As I have some Mega8 in DIP packages, it would be nice to do some breadboard experiment.

Regards,

Jan
Back to top
View user's profile Send private message
Jan



Joined: 08 Apr 2007
Posts: 10
Location: Germany, Greifswald to be precise

PostPosted: Wed Apr 11, 2007 8:18 am    Post subject: Reply with quote

Now the compilation process completes without errors or warnings. I can build the software for each variant, mega8, mega88 and mega168. I added some defines for the mega88 in the bootloader prog.c file and put together a new project configuration supporting the 8 kB devices.

I'm now going to build the circuit on breadboard to test it. I'm so curious if it will work Smile

Jan
Back to top
View user's profile Send private message
mpthompson



Joined: 02 Jan 2006
Posts: 650
Location: San Carlos, CA

PostPosted: Wed Apr 11, 2007 5:43 pm    Post subject: Reply with quote

Hi Jan,

I see you are beating me to this. I was just about to start looking into this when I saw your message this morning. Hopefully you will find it does indeed work Smile.

If not, you know where to find us...

-Mike
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Jan



Joined: 08 Apr 2007
Posts: 10
Location: Germany, Greifswald to be precise

PostPosted: Fri Apr 13, 2007 6:29 am    Post subject: Reply with quote

Hi,

I just wanted to tell you that it is working fine. The firmware is running on an ATmega8.

For testing, I use a L293 H bridge, because it is easier on the breadboard. The voltage drop of this device is rather bad, but I've built the system just for testing the software, not for the evaluation of hardware characteristics, so the voltage drop is not important anyway.

I'm using the OSIF to control the servo, and I have to say that this is a great tool. It's cheap to build and the PC software makes exprimenting with the servo easy. I really like the "scan bus" function, it's ideal to test the bus wiring.

Thanks a lot to Mike and Barry for helping me.

Regards,

Jan
Back to top
View user's profile Send private message
mpthompson



Joined: 02 Jan 2006
Posts: 650
Location: San Carlos, CA

PostPosted: Fri Apr 13, 2007 6:30 am    Post subject: Reply with quote

Jan,

Good news indeed. I'm glad you are finding the pieces coming together for you.

-Mike
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
youthreewire



Joined: 30 Nov 2008
Posts: 39

PostPosted: Mon Dec 01, 2008 6:00 pm    Post subject: Reply with quote

Jan wrote:
Hi Mike,

thank you for your help, but I changed my plans. I've ordered 20 pieces of the Mega168, because I don't want to put a lot of work into an outdated design.

I always thought the advantage of cvs systems to be in the possibility to keep every published version of the code available? But this is just my kind of naive view, because I never really used CVS software.

My WInCVS client refuses to work, I guess there's something wrong with my python setup. Whatever, I'll figure that out later.

Do you have an idea, during which period the Mega8 version was up and running, so I might try to get all the files from that date? As I have some Mega8 in DIP packages, it would be nice to do some breadboard experiment.

Regards,

Jan


I think Jan got specialized help for the Atmega8 from Mike...(I sent you a yahoo IM request mike)
Back to top
View user's profile Send private message
Arnold60



Joined: 02 Sep 2010
Posts: 1

PostPosted: Thu Sep 02, 2010 3:25 am    Post subject: Reply with quote

Implementing a USB CDC device with V-USB violates some aspects of USB 1.1. CDC-Mode may therefore fail or be unreliable on some operating systems or computer hardware. Please look at the compatibility list included in the AVR-CDC project or test a simplified prototype on breadboard with your computer if you want to use CDC mode.

We recommend that you use AVR-Doper in HID mode instead, which has no such problem. This mode is supported by avrdude. More information about interface modes and their relative advantages can be found in the project description.
_________________
gw2 gold
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    OpenServo.com Forum Index -> Software 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


Powered by phpBB © 2001, 2005 phpBB Group