Open xinchencai opened 1 week ago
Hi @xinchencai ,
Thanks for reporting the problem.
Unfortunately, the support of P4 is in preview state for 5.2.2 release and the USB part is not implemented there. That is why we need to fulfill the idf.py set-target
command with --preview
flag, and this is the reason why usb_phy.h
is missing there.
The correct solution would be to use the release/v5.3 (or higher).
If for some reason this is not possible, please let us know.
If it is possible, try the example on P4 under esp-idf v5.3 (or higher) and close the ticket if there will be no further questions. Otherwise, feel free to report any issues.
Thanks.
Answers checklist.
IDF version.
v5.2.2
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
CMD
What is the expected behavior?
Build normally, trying to make a mass storage device on esp32 P4.
What is the actual behavior?
Throws a build error:
Missing "esp_private/usb_phy.h" file name found in the following component(s): usb(C:\Espressif\frameworks\esp-idf-v5.2.2\components\usb\include\esp_private\usb_phy.h). Maybe one of the components needs to add the missing header directory to INCLUDE_DIRS of idf_component_register call in CMakeLists.txt.
Steps to reproduce.
Build or installation Logs.
More Information.
Doesn't work on Raspberry Pi either