adafruit / adafruit/Adafruit_TinyUSB_Arduino

FlushCDC Problem with arduino-pico core

Open
#193 7 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
C
Stars
654
Forks
183
PR merge metrics
No merged PRs in 30d

Description

### Operating System

Windows 10

### IDE version

1.8.19

### Board

Raspberry PICO

### ArduinoCore version

2.3.3

### TinyUSB Library version

1.14.1

### Sketch (attached txt file)

```
#include

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

void loop() {
Serial.println("blink!");
delay(200);
}
```

### What happened ?

Even/odd loop iteration doesn't send data to PC. Data is stored in buffer and transferred on next loop cycle.

### How to reproduce ?

Compile and upload sketch with arduino-pico core with TinyUSB stack and open serial port monitor.

### Debug Log

_No response_

### Screenshots

![screen](https://user-images.githubusercontent.com/17668205/183625702-f89f7e40-9d65-4556-9001-0076d0387fd1.PNG)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the behavior with the provided sketch on a Raspberry PICO using the arduino-pico core and TinyUSB stack, while monitoring the serial output. Trace the FlushCDC path and CDC buffering behavior; done means each Serial.println() iteration reaches the PC without being delayed until the next loop cycle, with the reproduction still passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, raspberry-pi
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.