The tinyusb port in ESP-IDF is bad!
The tinyusb port in ESP-IDF is bad!
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.
-
- Posts: 19
- Joined: Thu Oct 07, 2021 8:11 am
Re: The tinyusb port in ESP-IDF is bad!
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.
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!
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?
-
- Posts: 19
- Joined: Thu Oct 07, 2021 8:11 am
Re: The tinyusb port in ESP-IDF is bad!
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
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!
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: Assasinsareus and 94 guests