Can't install S4AFirmware15 to Arduino Leo

513 views
Skip to first unread message

Erika Sparks

unread,
Nov 24, 2013, 9:22:56 AM11/24/13
to s4a-co...@googlegroups.com
Hello!

My daughters and I have just started playing with the Arduino Leo, and as they are huge Scratch fans, I was very excited to find this software! I downloaded the software and the Firmware. I was able to install the software, but when I try to install the firmware, I get the following error at line 80:

S4AFirmware15.ino: In function 'void TIMER2_OVF_vect()':
S4AFirmware15:223: error: 'TCNT2' was not declared in this scope

And here is the function. 
void configureServomotors() //servomotors interruption configuration (interruption each 10 ms on timer2)
{
 newInterruption = false;
 updateServoMotors = false;
 TCCR2A = 0;
 TCCR2B = 1<<CS22 | 1<<CS21 | 1<<CS20;
 TIMSK2 = 1<<TOIE2; //timer2 Overflow Interrupt
 TCNT2 = TIMER2_PRELOAD; //start timer
}

Should I add declaration statements at the top of the sketch? Thanks!

Erika

Víctor Casado

unread,
Nov 26, 2013, 2:15:07 PM11/26/13
to Erika Sparks, s4a-co...@googlegroups.com
Hi Erika,

Try the modified S4A firmware for the Arduino Leonardo by William Gebers, it should work. We'll upload it to the web soon.

Regards,


2013/11/24 Erika Sparks <otte...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "S4A Community Mail List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s4a-communit...@googlegroups.com.
To post to this group, send email to s4a-co...@googlegroups.com.
Visit this group at http://groups.google.com/group/s4a-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/s4a-community/134ee71e-fab7-4c25-9dc2-5bfdf673d603%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Víctor Casado
Equip de recerca (Edutec)
vict...@citilab.eu

FUNDACIÓ PEL FOMENT DE LA
SOCIETAT DEL CONEIXEMENT
CORNELLÀ


Citilab Cornellà | http://citilab.eu | Pl. Can Suris s/n | 08940 Cornellà de Llobregat | Barcelona
S4AFirmware15_Rev2.ino

angle...@gmail.com

unread,
Sep 17, 2014, 5:00:28 AM9/17/14
to s4a-co...@googlegroups.com, otte...@gmail.com
Hi Victor Casado

I have downloaded S4A firmware and uploaded into Leonardo Board, but when I connected with Scratch, S4A still didn't recognize Leonardo board.

Can you help me ?

Thanks & Regards.

Angle Vu

Víctor Casado

unread,
Sep 26, 2014, 6:00:12 AM9/26/14
to angle...@gmail.com, s4a-co...@googlegroups.com, Erika Sparks
Did you uploaded the firmware to the board without problems? If so, which OS are you using?

Regards,

Reply all
Reply to author
Forward
0 new messages