Page 1 of 1

File missed while compiling ESP-IDF example code

Posted: Fri Sep 02, 2022 1:46 am
by shermanlee
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 1118 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!

Re: File missed while compiling ESP-IDF example code

Posted: Fri Sep 02, 2022 12:08 pm
by gtjoseph
You probably need to include "tinyusb" in the REQUIRES parameter in your main/CMakeLists.txt file.