I am trying to use your library, however I am not be able to succeed in working with that due to the conflict with core libraries of ESP32 Arduino. As the other included libraries integrated within each other, I am gonna try deeply to solve the issues. Or else, if you have any recommendation as a simple solution, I can try that one?I fixed one more thing in my library and now you can also use it as a standard Serial libraryCode: Select all
#define NO_GLOBAL_SERIAL // this will prevent to create instance of HardwareSerial Serial #include "cdcusb.h" CDCusb Serial; void setup() { Serial.begin(); while(!Serial); // wait until USB cable is connected and stack is ready Serial.println("Serial is ready"); } void loop() { delay(1000); Serial.println(millis()); }
ESP32-S2 USB-CDC Flashing (Arduino)
Re: ESP32-S2 USB-CDC Flashing (Arduino)
Re: ESP32-S2 USB-CDC Flashing (Arduino)
Ok, thanks. It's working as you said. However, the CDC flashing is still not working, right?Do not use option "Serial connected to: USB".
I could not be able to flash the ESP32-S2 with your TinyUSB library, even with double upload button clicking on IDE.
Re: ESP32-S2 USB-CDC Flashing (Arduino)
Thats very odd, with most recent changes i can update S2 if CDC is included and running in app and board is connected with USB.Ok, thanks. It's working as you said. However, the CDC flashing is still not working, right?Do not use option "Serial connected to: USB".
I could not be able to flash the ESP32-S2 with your TinyUSB library, even with double upload button clicking on IDE.
I am using ubuntu 20.04 for testing and it works. Now i tested with windows 10 VM and there is some problem with it, IDE is sending DTR and RTS signals with different pattern. I will investigate it when i have some time.
Thanks for testing and reporting.
Re: ESP32-S2 USB-CDC Flashing (Arduino)
Thanks to chegewara, the discussion and solution alternatives are going on in the following issue page.Thats very odd, with most recent changes i can update S2 if CDC is included and running in app and board is connected with USB.
I am using ubuntu 20.04 for testing and it works. Now i tested with windows 10 VM and there is some problem with it, IDE is sending DTR and RTS signals with different pattern. I will investigate it when i have some time.
Thanks for testing and reporting.
https://github.com/chegewara/EspTinyUSB/issues/29
Who is online
Users browsing this forum: No registered users and 3 guests