2023-12-21 05:31 AM
Hello ST community,
I'm trying to implement a Wi-Fi solution on STM32U5 series (B-U585I-IOT02A) from the CubeIDE example "IOT_HTTP_SERVER".
I face problems when I copy dependencies like Drivers and Middlewares because it does not include right paths.
I tryied differents ways to include headers without success.
I tried adding path manually using :
- Absolute paths
- Relative paths (../../file.h) or (../file.h)
- Adding folder to the path searching in STM32 CubeIDE or in files browser.
To visualize it, here is the example includes and my project includes.
Thank you in advance.
2023-12-21 06:30 AM
What error message are you seeing?
Include paths should be added in Project Properties -> C/C++ General -> Paths and Symbols -> Includes.
After that you can include the file using a relative path in an #include statement.
2023-12-21 07:09 AM
fatal error : mx_wifi.h: No such file or director
I added the includes paths as you said but it is missing the parent repertory between workspace and Drivers.
2023-12-21 07:15 AM
Has to be an error somewhere.
Show screenshots of the relevant configuration pages and of the file existing in said directly in windows explorer, and the relevant #include statements.
2023-12-21 07:26 AM
Includes
Paths & symbols
Errors
2024-02-01 02:13 AM
If you are on a Windows PC:
don't use too long directory path for the sources.
install the sources in a directory with a short path (near the root folder c:\ )
or create a virtual drive with "subst" command just above "Projects" and open the CubeIDE project from the subst drive.
in a DOS prompt:
subst z: c:\users\username\Documents\stm32workspace\Ww