Skip to content

Arduino Micro USB Serial cannot receive more than 255 data once #125

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

Open
LeoYan opened this issue Aug 30, 2017 · 2 comments
Open

Arduino Micro USB Serial cannot receive more than 255 data once #125

LeoYan opened this issue Aug 30, 2017 · 2 comments
Labels

Comments

@LeoYan
Copy link

LeoYan commented Aug 30, 2017

Version: Arduino IDE=1.8.0; Mac=10.10.5; MCU=Atmega32U4
Issue: Arduino Micro USB Serial is crashed if send more than 255 data once to Serial. when it is occurred , the USB register is: 1) UEINTX = 0b 10010100 2)UEBCLX = 0b 0. That means the RX FIFO is empty but FIFOCON is not released, so the host has to wait until timeout.
Code:

void setup() {
  Serial.begin(115200);
}

void loop() {
  if (Serial.available()) {      // If anything comes in Serial (USB),
    Serial.write(Serial.read());   // read it and send it out Serial1 (pins 0 & 1)
  }
}

Send data:
12345678901234567890123456789012345678901234567890
22345678901234567890123456789012345678901234567890
32345678901234567890123456789012345678901234567890
42345678901234567890123456789012345678901234567890
523456789012345678901234567890123456789012345678

@sandeepmistry
Copy link
Contributor

Hi @LeoYan, Could you please try out the changes I proposed in pull request arduino/Arduino#6886, so see if they resolve this issue?

@LeoYan
Copy link
Author

LeoYan commented Dec 19, 2017

@sandeepmistry I have tested it on MAC, it works:) Thank you very much.

@sandeepmistry sandeepmistry transferred this issue from arduino/Arduino Sep 16, 2019
@per1234 per1234 added the bug label Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants