This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to add header files to Keil uVision5?

Hi every body!
I'm Cong. I am beginner in coding STM32.
Currently, I'm coding a project with:
- STM32F103VET6
- Configuration tool: STM32CubeMX
- DEV tool: Keil uVision5
Can you tell me the solutions to add header files to project (step by step), please?
Many thanks!

Parents
  • Create the header file in the project source code folder.

    Write #include "my-header-file.h" in the relevant source files.

    Or for headers from libraries - open the project settings and include the library directory in the include search path. Then in your source file write #include <my-library-header-file.h>

Reply
  • Create the header file in the project source code folder.

    Write #include "my-header-file.h" in the relevant source files.

    Or for headers from libraries - open the project settings and include the library directory in the include search path. Then in your source file write #include <my-library-header-file.h>

Children