FC5, w/ATTIny85, TCCR1A and TCCR1B error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Alberta2012
Flowcode v5 User
Posts: 63
Joined: Fri Apr 19, 2013 2:18 am
Has thanked: 10 times
Been thanked: 14 times
Contact:

FC5, w/ATTIny85, TCCR1A and TCCR1B error

Post by Alberta2012 »

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 ?
Last edited by Alberta2012 on Wed Aug 13, 2014 7:56 pm, edited 1 time in total.

User avatar
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

Post by Benj »

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.

Alberta2012
Flowcode v5 User
Posts: 63
Joined: Fri Apr 19, 2013 2:18 am
Has thanked: 10 times
Been thanked: 14 times
Contact:

Re: FC5, w/ATTIny85, TCCR1A and TCCR1B error

Post by Alberta2012 »

As soon as I select any 8 pins chip (ATTiny 13/13A/25/45/85) I get a similar error message....

Post Reply