My favorites | Sign in
Project Home Downloads Wiki Issues
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 995: Unintentional autoreset after uploading a sketch to a leonardo
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Closed:  Sep 2012

Sign in to add a comment
Reported by, Jul 29, 2012
What steps will reproduce the problem?
(For more details see thread,108270)
1.Upload the ArduinoISP to the leonardo
2.In the IDE change the board type to another arduino into which you want to burn a bootloader.
3.Use the leonardo to burn a bootloader into the other arduino.

What is the expected output? 
burning the bootloader should succeed.

What do you see instead?
avrdude: stk500_getsync(): not in sync: resp=0x00

What version of the Arduino software are you using?

On what operating system?  
Linux Dell4550 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

Which Arduino board are you using?

Please provide any additional information below.

This is because the leonardo is still at the magic baudrate of 1200bps when you burn a bootloader to the other arduino. The IDE make two subsequent calls to avrdude to to burn the bootloader. At the end of the first call, avrdude restores the baudrate to what it was before (1200bps). Then it closes the serial pert whic toggles DTR. This makes the leonardo reboot. The "not in sync" message appears when the ide makes the second call to avrdude which tries to communicate with the leonardo who is still rebooting.

More detailed explanation is in message:,108270.msg838797.html#msg838797

The message also explains that there is a bug independent from this one that prevents the ArduinoISP sketch from working on the leonardo (serial buffer overrun)

A possible solution is provided by pull request:

Aug 8, 2012
Project Member #1
Federico, can you look into this?  And more generally, see about getting the ArduinoISP sketch to work with Leonardo?
Labels: Component-ArduinoISP
Sep 5, 2012
Project Member #2
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-High
Sep 5, 2012
Project Member #3
(No comment was entered for this change.)
Labels: Component-ATmega32U4
Sign in to add a comment

Powered by Google Project Hosting