2023-12-09 01:23 AM
Hello,
sorry to ask you, I am not a programming professional, but a user on a particular project. As long as everything goes well it's perfect but when I have a problem it becomes complicated for me.
I'm trying to compile a code after having customized it for my needs, so I loaded the .ioc file into the IDE, everything went well, however when I run DEBUG, I get messages errors that I don't know how to interpret.
My understanding is that the compiler is expecting files but not finding the correct ones. What is strange is that in theory the project is complete.
If you could help me, I would be very grateful.
Thanks.
Solved! Go to Solution.
2023-12-12 07:13 AM
Note that STM32CubeIDE uses GCC and Make anyhow.
As @STTwo-32 said, the problem is most likely that your Include Paths are not correct.
Check your Include Paths by right-clicking the Project name in the Project Explorer, and then choosing 'Properties':
Then go to C/C++ Build > Settings > MCU GCC Compiler > Include Paths:
For each of the four header files listed in your errors:
Check that the folder containing that file is in your list of Include Paths.
To add an include path, you can right-click a folder in the Project Explorer, and choose 'Add/Remove Include Path':
2023-12-09 02:14 AM
Hello @franck42 and welcome to the ST Community :smiling_face_with_smiling_eyes:.
It seems the include paths are not properly set up.
Please make sure to configure the include paths and check the path of the header files. Maybe those folders are not in the include folder list.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-12-11 10:10 PM
Hi STTw
I was not able to resolve my problem, I switched to GCC to try with Make, and everything is ok. My objective has been achieved but without understanding, I will see a little later.
THANKS
2023-12-12 07:13 AM
Note that STM32CubeIDE uses GCC and Make anyhow.
As @STTwo-32 said, the problem is most likely that your Include Paths are not correct.
Check your Include Paths by right-clicking the Project name in the Project Explorer, and then choosing 'Properties':
Then go to C/C++ Build > Settings > MCU GCC Compiler > Include Paths:
For each of the four header files listed in your errors:
Check that the folder containing that file is in your list of Include Paths.
To add an include path, you can right-click a folder in the Project Explorer, and choose 'Add/Remove Include Path':
2023-12-17 09:36 AM
Hello Andrew
as I didn't want to die ***, I tested it, it was definitely a problem with the path.
Thanks for the detail.