Skip to content

Leonardo serial buffer overrun when sending more than 64B (from pc to leonardo). [imported] #998

Closed
@cmaglie

Description

@cmaglie

This is Issue 998 moved from a Google Code project.
Added by 2012-07-30T21:51:27.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-High, Component-ATmega32U4, Milestone-1.0.2

Original description

What steps will reproduce the problem?
(For more details see thread http://arduino.cc/forum/index.php/topic,108270)
1.Upload the ArduinoISP to the leonardo
2.Open the serial monitor and change the baud rate to take away magic baud rate (this is a work around for defect 995: unintentional autoreset).
3.In the IDE change the board type to another arduino into which you want to burn a bootloader.
4.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?
When the ide makes the second call to avrdude (to actually write the bootloader into flash), avrdude outputs following message:

...
avrdude: Send: d [64] . [00] . [80] F [46] . [0c] . [94] 4 [34] . [1c] .
...
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

The [00] [80] indicates avrdude sends 128 bytes to the leonardo. This makes the leonardo's serial buffer of 64B overrun.

What version of the Arduino software are you using?
arduino-1.0.1

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?
leonardo

Please provide any additional information below.

More detailed explanation is in message:
http://arduino.cc/forum/index.php/topic,108270.msg838797.html#msg838797

Also there is a possible solution in my fork at
https://github.com/PeterVH/Arduino.git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions