Teensy LC USB serial flakiness

Status
Not open for further replies.

leftofthedial

New member
I recently picked up a Teensy LC, and am seeing flakey behavior with the USB serial interface:

With the Teensy attached my Linux host (Ubuntu 18.04 LTS), using "screen" to read the serial output, sometimes I see no output, sometimes I see a few lines but then nothing more, and a couple times the device has caused the Linux host to hang, requiring a reboot even after I disconnected the Teensy.

With the Teensy attached to my Macbook, I get text output more reliably, but the "Ctrl-A \" that I normally use to exit "screen" doesn't work, so I need to kill the window instead.

Any advice on getting this to work better? Should I switch to using the real serial ports? I just want the output to help with debugging.

My terribly uninteresting code is attached below.

(I've also tried building this with GNU tools outside of the Arduino IDE, which is my preferred way of working, but the behavior is the same.)

- David

....
Code:
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(13, OUTPUT);
}

void loop() {
  digitalWriteFast(13, HIGH);
  delay(500);
  digitalWriteFast(13, LOW);
  delay(500);
  Serial.println("Hello, world.");
}
 
Status
Not open for further replies.
Back
Top