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 

Software code for attiny45

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



Joined: 26 Jan 2010
Posts: 2
Location: ITALY

PostPosted: Tue Feb 02, 2010 2:30 pm    Post subject: Software code for attiny45 Reply with quote

Hello I am Ivan from Italy,i have some attiny45 around and i am interested to make some driver for my burned servos.I have problem for generate the hex file for the attiny45 with avr-studio4.Can you give me a hex file ready to use or give me info for make it myself?Avr studio give me error when it compile the pwm section:i receive this error:
../pwm.c:37:4: error: #error "This module is not being compiled for the AVR ATmega168 MCU."
../pwm.c: In function 'pwm_dir_a':
../pwm.c:100: error: 'TCCR1A' undeclared (first use in this function)
../pwm.c:100: error: (Each undeclared identifier is reported only once
../pwm.c:100: error: for each function it appears in.)
../pwm.c: In function 'pwm_dir_b':
../pwm.c:151: error: 'TCCR1A' undeclared (first use in this function)
../pwm.c: In function 'pwm_init':
../pwm.c:206: error: 'TCCR1A' undeclared (first use in this function)
../pwm.c:220: error: 'TCCR1B' undeclared (first use in this function)
../pwm.c:221: error: 'TCCR1C' undeclared (first use in this function)
../pwm.c:222: error: 'TIMSK1' undeclared (first use in this function)
../pwm.c:225: error: 'ICR1' undeclared (first use in this function)
../pwm.c:234: error: 'WGM11' undeclared (first use in this function)
../pwm.c:234: error: 'WGM10' undeclared (first use in this function)
../pwm.c:235: error: 'ICNC1' undeclared (first use in this function)
../pwm.c:235: error: 'ICES1' undeclared (first use in this function)
../pwm.c:236: error: 'WGM13' undeclared (first use in this function)
../pwm.c:236: error: 'WGM12' undeclared (first use in this function)
../pwm.c: In function 'pwm_update':
../pwm.c:265: error: 'TCCR1A' undeclared (first use in this function)
../pwm.c:281: error: 'ICR1' undeclared (first use in this function)
../pwm.c: In function 'pwm_stop':
../pwm.c:376: error: 'TCCR1A' undeclared (first use in this function)
make: *** [pwm.o] Error 1
Build failed with 19 errors and 0 warnings...
I have the avr studio setting for attiny45.
Can you help me?Thanks
P.s:I have the some problem for buid the code with atmega8,while with atmega168 i can build it without problem.
Back to top
View user's profile Send private message
jharvey



Joined: 15 Mar 2009
Posts: 266
Location: Maine USA

PostPosted: Tue Feb 02, 2010 10:02 pm    Post subject: Reply with quote

From this line,

Quote:
../pwm.c:37:4: error: #error "This module is not being compiled for the AVR ATmega168 MCU."

I would be inclined to think your make file is still calling for the 168 not the tiny. Can you check your make file, or what ever you use to send the compile options to the compiler.
Back to top
View user's profile Send private message Visit poster's website
Ivan2280



Joined: 26 Jan 2010
Posts: 2
Location: ITALY

PostPosted: Tue Feb 02, 2010 10:13 pm    Post subject: info Reply with quote

There is only 1 file pwm in the directory that i have download of openservo and the project for attiny 45 is ready,i have only to build it but it give me this error.Anyone can help me to solve it?Or have a file pwm for attiny 45?Thanks
Back to top
View user's profile Send private message
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