-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
fix: HW CDC write() #9401
fix: HW CDC write() #9401
Conversation
When writing a stream of data to the HW CDC of S3/C3/C6/H2, the SoC looses some bytes and don't send them all. This fix makes it work fine.
👋 Hello SuGlider, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
Let's wait for @TD-er to confirm that this PR fixes the issue. |
@SuGlider Is this ready to be reviewed? :) |
I have been running this code for a while now and it does seem to work fine. |
When writing a stream of data to the HW CDC of S3/C3/C6/H2, the SoC looses some bytes and don't send them all. This fix makes it work fine.
Description of Change
When writing a stream of data to the HW CDC of S3/C3/C6/H2, the SoC looses some bytes and don't send them all.
This fix makes it work fine.
Tests scenarios
Using an Arduino Sketch and a Python script to test the data flow.
Run the sketch in the S3/C3/C6/H2 with HWCDC on Boot enabled.
Run the script in the USB Host computer. It will open the CDC port and run the test.
Arduino side:
Python side:
Related links
Fix #9378