Hi everyone,
I'm experimenting with a servo and an ATTiny85. When I try to compile, I get the following errors:
G:\Jasmin\PROJET~1\WIP\PAC15C~1\07-FLO~1\test de servo.c: In function 'main':
G:\Jasmin\PROJET~1\WIP\PAC15C~1\07-FLO~1\test de servo.c:747: error: 'TCCR1A' undeclared (first use in this function)
G:\Jasmin\PROJET~1\WIP\PAC15C~1\07-FLO~1\test de servo.c:747: error: (Each undeclared identifier is reported only once
G:\Jasmin\PROJET~1\WIP\PAC15C~1\07-FLO~1\test de servo.c:747: error: for each function it appears in.)
G:\Jasmin\PROJET~1\WIP\PAC15C~1\07-FLO~1\test de servo.c:749: error: 'TCCR1B' undeclared (first use in this function)
G:\Jasmin\PROJET~1\WIP\PAC15C~1\07-FLO~1\test de servo.c: In function '__vector_3':
G:\Jasmin\PROJET~1\WIP\PAC15C~1\07-FLO~1\test de servo.c:892: error: 'TCC1' undeclared (first use in this function)
Before asking my question, I looked at the following post:
http://www.matrixtsl.com/mmforums/viewt ... r1a#p22403
It did not solve my issues. The FC is very simple: read a pot, position the servo accordingly ....Can hardly be simpler....
I'm using V5. Anyone has an idea ?
FC5, w/ATTIny85, TCCR1A and TCCR1B error
Moderator: Benj
-
- Flowcode v5 User
- Posts: 63
- Joined: Fri Apr 19, 2013 2:18 am
- Has thanked: 10 times
- Been thanked: 14 times
FC5, w/ATTIny85, TCCR1A and TCCR1B error
Last edited by Alberta2012 on Wed Aug 13, 2014 7:56 pm, edited 1 time in total.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: FC5, w/ATTIny85, TCCR1A and TCCR1B error
Hello,
It looks like the ATtiny85 is missing the key hardware peripherals required to drive the servo component. I will have a look into the component code and see if I can nail down what peripherals are required on AVR.
It looks like the ATtiny85 is missing the key hardware peripherals required to drive the servo component. I will have a look into the component code and see if I can nail down what peripherals are required on AVR.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 63
- Joined: Fri Apr 19, 2013 2:18 am
- Has thanked: 10 times
- Been thanked: 14 times
Re: FC5, w/ATTIny85, TCCR1A and TCCR1B error
As soon as I select any 8 pins chip (ATTiny 13/13A/25/45/85) I get a similar error message....