Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@LeoYan

Description

@LeoYan
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.