2024-07-04 04:19 AM
How to add external files .c and .h files in STM32CubeIDE project ,can you please explain steps to add .c and .h files in STM32CUBEIDE project
Solved! Go to Solution.
2024-07-04 04:37 AM - edited 2024-07-04 04:37 AM
Hello,
For .h files, you need to give the path(s) to that files as include paths:
Proprieties -> Settings -> MCC GCC compiler -> Include Paths:
For .c file you need to drag and drop the file to the Project explorer at the level you want. You will get this message:
Click OK. The file will be added to you project.
2024-07-04 04:37 AM - edited 2024-07-04 04:37 AM
Hello,
For .h files, you need to give the path(s) to that files as include paths:
Proprieties -> Settings -> MCC GCC compiler -> Include Paths:
For .c file you need to drag and drop the file to the Project explorer at the level you want. You will get this message:
Click OK. The file will be added to you project.
2024-07-04 04:38 AM
Not entirely sure what you mean by "external", but maybe try this?