What steps will reproduce the problem? 1. create a sketch that output data at 115200 using Serial.write(), and sends random values from 0x00 to 0xFF at max rate (as in unformatted values from a digital accelerometer) 2. Download sketch and run, open serial monitor as soon as RX/TX LEDs go dark after download. 3. Watch serial data spew onto the top line of the serial monitor window (make sure autoscroll is checked) and wait for a few seconds. Data will stop, the system will freeze, Java will go zombie, etc.
What is the expected output? What do you see instead? Expected output is a constant stream of serial characters, without crashing.
What version of the Arduino software are you using? On what operating system? Which Arduino board are you using? Arduino 22 on Win7Pro SP1 on an Intel Corei7 laptop. Arduino is a Sparkfun Mini Pro 328/8MHz/3.3 via a Sparkfun 3.3V FTDI Basic Breakout.
Please provide any additional information below. This issue is easily and regularly repeatable on my system. If I insert the CRLF characters at the end of each line like the autoscroll system expects, it works correctly. Fat fingering 0x0D 0x0B (vertical tab) instead causes the crash as well as no line termination characters.
Comment #1
Posted on Mar 8, 2012 by Helpful ElephantI can confirm this issue in both Arduino and MPIDE environments.
A serial overrun with the monitor window open will cause the IDE application to freeze for a very long time.
Suggestion: Fork a separate process to manage the serial monitor. This way, it can be killed separate from the IDE/MPIDE when this happens.
I'm working on implementing hardware flow control for the PIC platform in HardwareSerial, but, on the AVR it would have to be implemented in software. (The PIC hardware has !RTS/!CTS).
Owen
Comment #2
Posted on May 27, 2015 by Quick Camelhttps://github.com/arduino/Arduino/issues/578#issuecomment-105874209
Status: Fixed
Labels:
Type-Defect
Priority-Medium