Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerialUSB.read is not functional #652

Open
ddavis-2015 opened this issue Sep 4, 2022 · 2 comments
Open

SerialUSB.read is not functional #652

ddavis-2015 opened this issue Sep 4, 2022 · 2 comments

Comments

@ddavis-2015
Copy link

There appears to be an issue with the USB serial driver supplied with Teensyduino. Some critical state info. is not being transmitted by the Teensy driver to the Linux host, which in turn causes the Linux cdc_acm driver to block sending any data to the Teensy.

In other words, the SerialUSB only works in one direction: from Teensy to Linux.

The test program is attached.

The test program was also used with an Arduino Nano 33 BLE Sense, and a Raspberry Pi Pico, with no issues. Same test environment.

Ubuntu Linux 18.04.6
Arduino IDE 1.8.15
Teensyduino 1.57
Board: Teensy4.1
USB Type: Serial
Speed: 600MHz
Optimize: Debug (also Faster tested)
Serial port: /dev/ttyACM0

Steps:

  1. Load program onto board
  2. Open Arduino IDE Serial Monitor
  3. Echo Test Ready appears in Serial Monitor
  4. In the Serial Monitor input area, type any character and hit Return
  5. Continue step 4, noticing there is no output in the Serial Monitor. Eventually the entire Arduino IDE will stop responding until the Teensy is powered off.

This behavior can also been seen at a Terminal command prompt with the Teensy powered on:

echo hello > /dev/ttyACM0

The command will simply hang until the Teensy is powered off.

EchoTest.zip

@PaulStoffregen
Copy link
Owner

@PaulStoffregen
Copy link
Owner

PaulStoffregen commented Sep 4, 2022

Works fine when I run it here on Ubuntu 20.04.
screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants