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 Core, especially for Windows 10 OS. That's why I am looking for another alternative solution. I am thinking the built-in "USB Console" feature of ESP32-S2 ROM might be implemented to Arduino ESP32 Core? Anyone on the forum has any recommendation or any idea related to this idea?
This feature is only available in ESP-IDF Core, more info is in the following link.
https://docs.espressif.com/projects/esp ... nsole.html
ESP32-S2 USB Console Arduino IDE Implementation
Re: ESP32-S2 USB Console Arduino IDE Implementation
I think it is not possible to do it with arduino IDE for this reason:
At the moment it is more important to have tinyusb support rather than option to buttonless flash on just one OS.
At the moment, this “USB Console” feature is incompatible with TinyUSB stack. However, if TinyUSB is used, it can provide its own CDC implementation.
https://docs.espressif.com/projects/esp ... imitationsIf 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 stack in ESP32-S2 ROM.
USB descriptors used by the ROM CDC stack may be different from the descriptors used by TinyUSB.
At the moment it is more important to have tinyusb support rather than option to buttonless flash on just one OS.
Re: ESP32-S2 USB Console Arduino IDE Implementation
By the way, I am not gonna use TinyUSB if USB Console feature is applicable on Arduino IDE, what you think? Is it possible?chegewara wrote: ↑Tue Mar 09, 2021 10:23 pmI think it is not possible to do it with arduino IDE for this reason:https://docs.espressif.com/projects/esp ... imitationsIf 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 stack in ESP32-S2 ROM.
USB descriptors used by the ROM CDC stack may be different from the descriptors used by TinyUSB.
At the moment it is more important to have tinyusb support rather than option to buttonless flash on just one OS.
Re: ESP32-S2 USB Console Arduino IDE Implementation
At the moment, accept the problem and use 2 steps flashing. I understand it is not good solution, but for now it is all i can recommend.
Maybe someone else knows a better solution, because i am just an user, not a guru.
Who is online
Users browsing this forum: No registered users and 52 guests