Page 1 of 1

The tinyusb port in ESP-IDF is bad!

Posted: Sat Aug 13, 2022 1:58 pm
by shawn2019
ESP-IDF's wrapper for tinyusb makes USB more complicated, and many places are written dead and inflexible. For example, it cannot support custom devices, and configuration descriptors, interface descriptors, and port descriptors cannot be modified. The best porting is to be compatible with tinyusb's own example, rather than complicating the problem.

Re: The tinyusb port in ESP-IDF is bad!

Posted: Tue Aug 16, 2022 6:37 am
by tore-espressif
Yep, I must agree that the initial decision to provide another layer between TinyUSB and esp-idf backfired on us. For new TinyUSB examples, we use its API directly, such as in this HID example https://github.com/espressif/esp-idf/tr ... e/tusb_hid (in this example only configuration descriptor is provided by the user application, but string and device descriptor can be provided too!).

The initial thought was to provide default descriptors for simple usecases -> many users want just a simple virtual COM port without going too deep into USB specifications. But now, with little effort, you can define all descriptors yourself and create a custom USB device.

Re: The tinyusb port in ESP-IDF is bad!

Posted: Tue Aug 16, 2022 11:37 pm
by shawn2019
thank you very much! In which version of IDF will this be released? I tried 4.4.3 and nothing for now. Will it be available in IDF 5.0?

Re: The tinyusb port in ESP-IDF is bad!

Posted: Wed Aug 17, 2022 1:30 pm
by tore-espressif
Yes, this change aims for IDF 5.0.

If you are tied to IDF v4.4.* releases, we can consider backporting to 4.4.3

Re: The tinyusb port in ESP-IDF is bad!

Posted: Wed Aug 17, 2022 2:03 pm
by shawn2019
Thanks tore!!! Thanks espressif!!! The best IOT chip company in China will also be the best IOT chip company in the world.