Problem with adding library to keil program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-04-07 1:30 PM
Hello to everyone
I want to print "Hello World" to the screen using the stm32f103ve card.
and when it comes to the "HAL driver" section and adds the libraries to the project, it gives an error.
the error is as follows:
..\..\main.c(3): error: #5: cannot open source input file "stm32f10x_gpio.h": No such file or directory
where am I making a mistake?
- Labels:
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-04-07 1:45 PM
In the C/C++ tab of the project options you need to set the Include Paths to point to the respective directories the include files live in.
Perhaps start by looking at or inspecting the form of the Template projects under the CubeF1 trees
STM32Cube_FW_F1_V1.8.0\Projects\STM3210E_EVAL\Templates\MDK-ARM\Project.uvprojx
<IncludePath>../Inc;../../../../Drivers/CMSIS/Device/ST/STM32F1xx/Include;../../../../Drivers/STM32F1xx_HAL_Driver/Inc;../../../../Drivers/BSP/STM3210E_EVAL;../../../../Drivers/BSP/Components/Common;../../../../Utilities/Log;../../../../Utilities/CPU</IncludePath>
<Define>USE_HAL_DRIVER,STM32F103xG,USE_STM3210E_EVAL</Define>
Up vote any posts that you find helpful, it shows what's working..
