The tinyusb port in ESP-IDF is bad!

shawn2019
Posts: 13
Joined: Mon Oct 07, 2019 2:39 am

The tinyusb port in ESP-IDF is bad!

Postby shawn2019 » Sat Aug 13, 2022 1:58 pm

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.

tore-espressif
Posts: 19
Joined: Thu Oct 07, 2021 8:11 am

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

Postby tore-espressif » Tue Aug 16, 2022 6:37 am

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.

shawn2019
Posts: 13
Joined: Mon Oct 07, 2019 2:39 am

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

Postby shawn2019 » Tue Aug 16, 2022 11:37 pm

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?

tore-espressif
Posts: 19
Joined: Thu Oct 07, 2021 8:11 am

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

Postby tore-espressif » Wed Aug 17, 2022 1:30 pm

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

shawn2019
Posts: 13
Joined: Mon Oct 07, 2019 2:39 am

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

Postby shawn2019 » Wed Aug 17, 2022 2:03 pm

Thanks tore!!! Thanks espressif!!! The best IOT chip company in China will also be the best IOT chip company in the world.

Who is online

Users browsing this forum: Google [Bot] and 79 guests