Tinyusb on the esp32 s3 devkitc

lib_deps and framework = espidf do not mix together well at all. (issue). You should be using the components folder or the Espressif component registry together with a idf_component.yml (example). You’ll probably want to look at the components

You can see the same idf_component.yml way being used in the official examples, for example:

Equally, you should not be using build_flags to configure your ESP-IDF / components setting. Use the sdkconfig.defaults file to setup default options like the example

and remember to delete the .pio and sdkconfig.<environment name> file for a full clean rebuild under the new settings.

And of course, PlatformIO provides a premade example, too:

https://github.com/platformio/platform-espressif32/tree/develop/examples/espidf-peripherals-usb

1 Like