-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Enable "USB CDC On Boot" for S2 not working with ESP IDF component project #9326
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
Comments
@dzungpv - Please use it this way:
|
Another detail, I only see the example sketch using |
It is not working, could not build , it show error:
There is no Serial when USB CDC ON Boot define: arduino-esp32/cores/esp32/HardwareSerial.cpp Line 101 in 44da992
You can create a test project with component and test with version 2.x, idf 4.4.6 and you will see the issue. |
It is defined in arduino-esp32/cores/esp32/USBCDC.cpp Lines 449 to 452 in 44da992
But it depends on arduino-esp32/cores/esp32/USB.cpp Line 16 in 44da992
Please use the sdkconfig file that has all necessary Arduino Settings for the ESP32-S2 This will enable TinyUSB necessary for USB CDC.
|
It still not build.
to the root CMakeLists.txt
Do I missed somethings? the IDF version I use 4.4.6 on the MacOS Soloma 14.2 |
@dzungpv - Please edit the CMaketLists.txt from
|
@dzungpv - Please not that I have edited the comment above (#9326 (comment)) The way to make it work is by editing the |
The |
@dzungpv - Please let me know if the issue is solved. |
It is not working. |
@dzungpv - I got it to work correctly using UART0 and USB CDC ports. Instead of changing
This is the diff in
It is also necessary to add another component to the project in order to have TinyUSB available. After adding |
I think that this is the necessary trick... there could be a better way to get it done, but this is how I made it. |
Yes it work, Just follow you step in #9326 (comment)
This very hard process, you must add this to the document. |
I didn't have to clone |
It show me the error not found tinyusb lib in the |
@dzungpv - I'll close this ticket as it seems solved. Please feel free to open it again. |
Board
Lolin S2 Mini
Device Description
Default
Hardware Configuration
Default
Version
v2.0.14
IDE Name
ESP IDF 4.4.6
Operating System
Macos 13, Windows 10
Flash frequency
40Mhz
PSRAM enabled
no
Upload speed
115200
Description
I enable USB CDC On Boot for a project building as ESP IDF component but it is not working.
The steps to enable the project here: https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html
The way I use to enable it mention here: https://esp32.com/viewtopic.php?t=30926#p115761.
I have tried both with release 2.0.14 and latest 2.x branch with the same result .
sdkconfig i use here: https://github.com/espressif/arduino-esp32/blob/2.0.14/tools/sdk/esp32s2/sdkconfig
I add a definition in root project CMakeLists.txt:
It can build and flash to the chip, but no output console like when I build the sketch with Arduino with option : "USB CDC On Boot: Enabled"
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: