-
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(USB): OTG S2 and S3 debug print #10123
Conversation
ESP32-S2 and S3 using USB CDC OTG (TinyUSB) won't print any log information. This commit fixes that.
👋 Hello SuGlider, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
@VojtechBartoska - Please add the 3.0.5 TAG / Milestone. |
Test Results 56 files - 83 56 suites - 83 4m 49s ⏱️ - 1h 38m 15s Results for commit b92a134. ± Comparison against base commit 70786dc. This pull request removes 9 tests.
♻️ This comment has been updated with latest results. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
Tested the PR with S2 and the problem still occurs |
I have a different result. What are the IDE settings that you have used? |
@lucasssvaz - Please use the new sketch from the desciption for your testing. This is the output I get from the USB Serial Port:
|
@SuGlider The LED is working properly in the sketch. |
The S2 has 2 different USB serial ports when using TinyUSB. One for uploading and a different one for when TinyUSB driver is activated. For instance with Windows, I see COM12 and after reseting the board I see the COM17. Does the S2 also create 2 "/dev/usb" files on Mac? |
USB logging using the S2 was working within the Arduino Core 2.0.14 using almost the same code. Could you check it under MacOS and let me know? |
I see only 1 port after connecting the board(USB-port) to PC. |
@SuGlider Just tested on 2.0.14 with ESP32S2 and it works correctly using your sketch (just had to remove print info).
EDIT: Tested latest 2.X branch, also works fine. |
To be sure tested again on master with exactly same code + same Tools menu settings. |
changed Macro testing
Description of Change
ESP32-S2 and S3 using USB CDC OTG (TinyUSB) won't print any log information. This commit fixes that.
Tests scenarios
Using ESP32-S2 and S3 with
USB CDC On Boot
enabled and in the case of S3, USB Mode shall beUSB OTG (TinyUSB)
.Set log level to Verbose.
Related links
Fixes #10121