folpindo / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Leonardo hangs up after tone() #960

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Leonardo only.

Once executing tone() function, Leonardo hangs up. Leonardo will not accept 
further upload of sketch. Hardware reset is needed to exit this situation.

This problem is because ATmega32U4 doesn't have TIMER2.

Original issue reported on code.google.com by sgk...@gmail.com on 22 Jun 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Fix should be as follows:
https://github.com/sgk/Arduino/commit/ec03779

Original comment by sgk...@gmail.com on 22 Jun 2012 at 7:05

GoogleCodeExporter commented 9 years ago
Shigeru, thanks for the report and patch!

Zach, can you take a look at this?  Thanks!

Original comment by dmel...@gmail.com on 23 Jun 2012 at 3:25

GoogleCodeExporter commented 9 years ago
Looks good to me,

Original comment by zevel...@blacklabel-development.com on 12 Jul 2012 at 4:19

GoogleCodeExporter commented 9 years ago
I found the same problem but the fix link is broken. Where can I find the patch?
Thanks

Original comment by miguel.b...@gmail.com on 2 Aug 2012 at 10:27

GoogleCodeExporter commented 9 years ago
Sorry. See https://github.com/arduino/Arduino/pull/102

Original comment by sgk...@gmail.com on 2 Aug 2012 at 10:32

GoogleCodeExporter commented 9 years ago
thanks a lot !!

Original comment by miguel.b...@gmail.com on 2 Aug 2012 at 2:46

GoogleCodeExporter commented 9 years ago
I asked Federico to look into this.

Original comment by dmel...@gmail.com on 2 Aug 2012 at 3:05

GoogleCodeExporter commented 9 years ago
I have just purchased an Arduino Leonardo and have tried the "fix" above and 
the board still locks up when trying to use the tone command.
John

Original comment by johntech...@gmail.com on 11 Aug 2012 at 10:07

GoogleCodeExporter commented 9 years ago
Same for me! Leonardo board hangs up wile starting up Tone() sketch.
But you can try http://arduino.cc/playground/Main/LibraryList#Audio if you need 
some audio output!
Alternative libraries are working as they should.

Original comment by edvins.d...@gmail.com on 18 Aug 2012 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 5 Sep 2012 at 1:05

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/47714c3d2cb921be1c111c81e105fc72357cae
50

Also, I moved the timer 2 #undef's to pins_arduino.h (which is #included by 
Arduino.h): 
https://github.com/arduino/Arduino/commit/532a46a74ba59b47ed88b2cc1d31eba02682f2
54

Original comment by dmel...@gmail.com on 13 Sep 2012 at 1:22