File missed while compiling ESP-IDF example code

shermanlee
Posts: 7
Joined: Fri Sep 02, 2022 1:33 am

File missed while compiling ESP-IDF example code

Postby shermanlee » Fri Sep 02, 2022 1:46 am

Hi all,

Im working on a project with esp32-s3 chip set to build a application with USB feature.
So I created a new project with the tinyUSB example under peripherals/usb/device/ from master version esp-idf.
The project is created successfully but while trying to build, there is a compile error saying "tinyusb.h" is not found.
Forum_use.png
Forum_use.png (26.04 KiB) Viewed 1094 times
I found the file located under components folder and tried to add the path in the makefile.
But then another header file missing error is up instead.
I think I missed something.
Could anyone have this experience give me a hand?

Thanks!

User avatar
gtjoseph
Posts: 92
Joined: Fri Oct 15, 2021 10:55 pm

Re: File missed while compiling ESP-IDF example code

Postby gtjoseph » Fri Sep 02, 2022 12:08 pm

You probably need to include "tinyusb" in the REQUIRES parameter in your main/CMakeLists.txt file.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 222 guests