2024-10-01 12:05 AM
I'm working with stm32h743 MCU on a custom board by myself and stm32cubeide after i generate code without even adding a semicolon to code i build it i get undefined reference for many functions like FreeRTOS,Ethernet and etc and its better to know i configured same configuration for stm32f407vgt6 but everthing was ok also im using stm32cubide 1.16.1
Solved! Go to Solution.
2024-10-01 06:12 AM
One issue is that the middleware directory is not set up as a source directory. You can do that here:
Doing that will still leave this error:
../Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd_opts.h:388:27: fatal error: fsdata.c: No such file or directory
Unclear how to solve that as fsdata.c is not a file that exist in the project as far as I can see.
2024-10-01 12:50 AM
Hello @Saeedn823 and welcome to the Community,
Make sure to set manually the Libraries and the Library Paths in your project settings.
Please have a look at this this post which may help you to add the Libraries.
2024-10-01 05:39 AM
I did it but still i have the same problem then i decided to configure my device step by step and after each one build my project it was ok and i hadn't have any issue till I configured LWIP that i got undefined reference for all object as well as FreeRTOS while before i add LWIP FreeRTOS functions was ok.
after all i found that the header files are ok and also CubeIDE only don't recognize C files under Middleware directory and other functions are ok even when i add new library under driver foldor.
You can access my project in attached file.
Thanks
2024-10-01 05:58 AM - edited 2024-10-01 05:59 AM
> after i generate code without even adding a semicolon to code i build it i get undefined reference
So this happens after you generate code without adding any new code? Include your IOC file.
Edit: Oh you already did. One sec...
2024-10-01 06:12 AM
One issue is that the middleware directory is not set up as a source directory. You can do that here:
Doing that will still leave this error:
../Middlewares/Third_Party/LwIP/src/include/lwip/apps/httpd_opts.h:388:27: fatal error: fsdata.c: No such file or directory
Unclear how to solve that as fsdata.c is not a file that exist in the project as far as I can see.
2024-10-01 06:30 AM
@TDK wrote:One issue is that the middleware directory is not set up as a source directory.
@Saeedn823 If you look in the IDE's Project Explorer, the Source folders are the ones with the little 'C' emblem on them:
In this example, you can see that 'Core', 'Drivers' and 'cc1125-demo' are all Source folders, but 'Debug' is not.
The Compiler only looks for files to compile in the Source folders - the Compiler ignores other folders.
When you create a new folder, the IDE gives you separate options for Source folders - distinct from other folders:
#SourceFolder