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

Include errors on 1st project

Hi,

First day with the uVision tool. I installed the tool chain, and tried downloading one of the example projects for the STM32F, the STM32_PWM_1 and _2.

When I try to build them, I get an error on the first line of their respective pwm.c files on the line:
#include <stm32f10x_lib.h> // STM32F10x Library Definitions

cannot find file.

So I tried to make my own project. I copied the stm32f10x_lib.h to the same directory as the project. When I included it using
#include "stm32f10x_lib.h" I got the same error. Can't find file.

So I am a bit puzzled about the includes. I added the files to the project group successfully. Because the methods and variables in them don't cause errors in the main.c, yet they cant be found for a build.

Thanks.

0