2023-09-06 08:12 AM
Hello,
I need to create two projects, under a common root, that shares user files and HAL drivers.
The project tree look like this:
\Inc
\Src
\Startup
\Drivers
\Project1
\Project2
So I started to create an empty STM32 project.
Then I have added the necessary preprocessor symbols and include path to include HAL drivers in my project.
As I want to include the HAL drivers files as a reference, I linked the Driver folder to my project using the feature "Link to files and recreate folder structures with virtual folders".
However, when building I have undefined reference errors to HAL functions.
It is not an include path problems, but it seems like the HAL source files aren't added to the project.
Where is my mistake?
Thank you,
Carlo
2023-09-07 09:06 AM - edited 2023-09-07 09:06 AM
Hello @CTabo.1 and welcome to the community,
Could you, please, provide the full log of what fails to further analyze this issue .
Thanks,
Rim
2023-09-11 01:12 AM
Hello Rim,
at least I found a solution creating the folder structure using File->New->Source/Source folder menù options, and then adding the files, using the "Link to files" option.
So this issue is no more blocking for me.
Anyway, if I try to add the entire /Drivers folder using the “Link to files and recreate folder structure with virtual folders” option, I have the following mistakes.
I also tried to use the “Link to files and folders” instead of “Link to files and recreate folder structure with virtual folders”, but even in this case I wasn’t able to compile.
Thank you,
Carlo