arduino / arduino/ArduinoCore-avr

Problem using Serial Monitor with ATmega32U4-based boards

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.5k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

With an Arduino Micro or a LilyPad Arduino USB the serial hangs up if I try to paste a block of text into the Serial Monitor **Send** field with more than about 384 characters. This doesn't happen on other boards, such as the Arduino Uno, Arduino Mega 2560, or Arduino Nano.

I can reproduce this effect using the following simple test program, which echoes the text and prints the number of characters every 64 characters:

```
void setup()
{
Serial.begin(9600);

while (!Serial);
Serial.println("Ready");
}

int count = 0;

void loop()
{
if (count % 64 == 0)
{
Serial.println();
Serial.print(count);
Serial.write(' ');
}
while (!Serial.available());
Serial.write(Serial.read());
count++;
}
```
My setup is: Arduino IDE 1.8.2 on a MacBook Pro running Mac OS X 10.11.6.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the hang by running the supplied sketch and pasting more than about 384 characters into Serial Monitor on an Arduino Micro or LilyPad Arduino USB, then compare it with the listed Uno, Mega 2560, and Nano boards. Trace the ATmega32U4 serial path and determine why the transfer stops; done means the same paste completes without hanging on the affected boards.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.