| View previous topic :: View next topic |
| Author |
Message |
Jan
Joined: 08 Apr 2007 Posts: 10 Location: Germany, Greifswald to be precise
|
Posted: Mon Apr 09, 2007 9:10 pm Post subject: How to build the AVR firmware? |
|
|
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 |
|
 |
mpthompson
Joined: 02 Jan 2006 Posts: 650 Location: San Carlos, CA
|
Posted: Tue Apr 10, 2007 6:22 am Post subject: |
|
|
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 |
|
 |
Jan
Joined: 08 Apr 2007 Posts: 10 Location: Germany, Greifswald to be precise
|
Posted: Tue Apr 10, 2007 3:27 pm Post subject: |
|
|
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 |
|
 |
Jan
Joined: 08 Apr 2007 Posts: 10 Location: Germany, Greifswald to be precise
|
Posted: Wed Apr 11, 2007 8:18 am Post subject: |
|
|
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
Jan |
|
| Back to top |
|
 |
mpthompson
Joined: 02 Jan 2006 Posts: 650 Location: San Carlos, CA
|
Posted: Wed Apr 11, 2007 5:43 pm Post subject: |
|
|
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 .
If not, you know where to find us...
-Mike |
|
| Back to top |
|
 |
Jan
Joined: 08 Apr 2007 Posts: 10 Location: Germany, Greifswald to be precise
|
Posted: Fri Apr 13, 2007 6:29 am Post subject: |
|
|
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 |
|
 |
mpthompson
Joined: 02 Jan 2006 Posts: 650 Location: San Carlos, CA
|
Posted: Fri Apr 13, 2007 6:30 am Post subject: |
|
|
Jan,
Good news indeed. I'm glad you are finding the pieces coming together for you.
-Mike |
|
| Back to top |
|
 |
youthreewire
Joined: 30 Nov 2008 Posts: 39
|
Posted: Mon Dec 01, 2008 6:00 pm Post subject: |
|
|
| 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 |
|
 |
Arnold60
Joined: 02 Sep 2010 Posts: 1
|
Posted: Thu Sep 02, 2010 3:25 am Post subject: |
|
|
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 |
|
 |
|