Search found 19 matches

by ozgbostan
Wed Mar 10, 2021 11:31 am
Forum: ESP32 Arduino
Topic: ESP32-S2 USB Console Arduino IDE Implementation
Replies: 4
Views: 4961

Re: ESP32-S2 USB Console Arduino IDE Implementation

I think it is not possible to do it with arduino IDE for this reason: If you are developing an application which uses the USB peripheral with the TinyUSB stack, this USB Console feature can not be used. This is mainly due to the following reasons: This feature relies on a different USB CDC software...
by ozgbostan
Wed Mar 10, 2021 11:20 am
Forum: ESP32 Arduino
Topic: ESP32-S2 USB Console Arduino IDE Implementation
Replies: 4
Views: 4961

Re: ESP32-S2 USB Console Arduino IDE Implementation

chegewara wrote:
Tue Mar 09, 2021 10:23 pm
At the moment it is more important to have tinyusb support rather than option to buttonless flash on just one OS.
Thanks chegewara for your answer. So, you have any recommendation to be able to solve the TinyUSB stack issue?
by ozgbostan
Tue Mar 09, 2021 8:41 pm
Forum: ESP32 Arduino
Topic: ESP32-S2 USB Console Arduino IDE Implementation
Replies: 4
Views: 4961

ESP32-S2 USB Console Arduino IDE Implementation

Dear contributors, I am designing an ESP32-S2 based custom development board for an educational purpose. For that reason, I would like to use the built-in native USB peripheral for flashing the Arduino sketches to the IC. However, there is a problem in integrated TinyUSB library of Arduino ESP32 Cor...
by ozgbostan
Thu Mar 04, 2021 8:20 am
Forum: ESP32 Arduino
Topic: ESP32-S2 USB-CDC Flashing (Arduino)
Replies: 24
Views: 25273

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. 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 patt...
by ozgbostan
Tue Mar 02, 2021 6:42 am
Forum: ESP32 Arduino
Topic: ESP32-S2 USB-CDC Flashing (Arduino)
Replies: 24
Views: 25273

Re: ESP32-S2 USB-CDC Flashing (Arduino)

chegewara wrote:
Sun Feb 28, 2021 2:17 am
Do not use option "Serial connected to: USB".
Ok, thanks. It's working as you said. However, the CDC flashing is still not working, right?

I could not be able to flash the ESP32-S2 with your TinyUSB library, even with double upload button clicking on IDE.
by ozgbostan
Sat Feb 27, 2021 5:47 pm
Forum: ESP32 Arduino
Topic: ESP32-S2 USB-CDC Flashing (Arduino)
Replies: 24
Views: 25273

Re: ESP32-S2 USB-CDC Flashing (Arduino)

I fixed one more thing in my library and now you can also use it as a standard Serial library #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 connec...
by ozgbostan
Wed Feb 24, 2021 12:58 pm
Forum: ESP32 Arduino
Topic: ESP32-S2 USB-CDC Flashing (Arduino)
Replies: 24
Views: 25273

Re: ESP32-S2 USB-CDC Flashing (Arduino)

Thats right. My library is alternative for espressif library in arduino IDE which is having only CDC class at the moment, as far as i know, and only 1 example. The option "Serial connected to" is another thing. It is like ESP_CONSOLE_USB_CDC option in IDF menuconfig, will log all from Serial to USB...
by ozgbostan
Wed Feb 24, 2021 10:09 am
Forum: ESP32 Arduino
Topic: ESP32-S2 USB-CDC Flashing (Arduino)
Replies: 24
Views: 25273

Re: ESP32-S2 USB-CDC Flashing (Arduino)

CDC flashing will available as long as CDC is running on device, so you have to add it to your code each time. OK, I have understood. So, what about "Serial connected to:" option of Arduino IDE? Is it another feature of ESP32 Arduino Core? As far as I understood, the released library of yours and t...
by ozgbostan
Wed Feb 24, 2021 6:07 am
Forum: ESP32 Arduino
Topic: ESP32-S2 USB-CDC Flashing (Arduino)
Replies: 24
Views: 25273

Re: ESP32-S2 USB-CDC Flashing (Arduino)

I just added persist reboot to my library, which allows to flash without using buttons to enable download mode. My version has small issue, but i think it is better to have it working this way than not having it at all. Thanks for your support and contribution. Now, after uploading the example sket...
by ozgbostan
Tue Feb 23, 2021 7:55 am
Forum: ESP32 Arduino
Topic: ESP32-S2 USB-CDC Flashing (Arduino)
Replies: 24
Views: 25273

Re: ESP32-S2 USB-CDC Flashing (Arduino)

Thanks for the discussion. You have anything in your mind to recommend as a solution? I investigated it a bit today and there is something changed in tinyusb library which is in idf-release/v4.2, since branch esp32s2 works good, and by works good i mean if you have flashed USBSerial example from br...