blackketter
Well-known member
I think I'm seeing a bug in usb_serial on Teensy 4.0. When I try sending a block of text larger than 2413 bytes via the serial port, it locks up. Here's the sketch:
I put 2414 bytes of text into foo.txt and from the macOS terminal:
This command get stuck as the teensy is no longer reading bytes. Putting 2413 bytes in the file, it works fine. This and much larger text files work fine on Teensy 3.6.
Any thoughts?
Code:
#include <Arduino.h>
void setup() {
}
void loop() {
if (Serial.available()) {
int x = Serial.read();
Serial.write(x);
}
}
Code:
cat foo.txt > /dev/cu.usbmodem62442801
This command get stuck as the teensy is no longer reading bytes. Putting 2413 bytes in the file, it works fine. This and much larger text files work fine on Teensy 3.6.
Any thoughts?