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.

Parents
  • Thanks Martin.

    MDK-Lite Version 4.71.0.0
    uVision V4.71.2.0

    Yes. I tried the 'Blinky' project for the MCB32F400 and it compiles with no errors.

    So I tried to download and make one of the examples, and in each case it cannot find the device header. Same if I try to write my own. It must be some sort of path issue that the example correctly manages.

Reply
  • Thanks Martin.

    MDK-Lite Version 4.71.0.0
    uVision V4.71.2.0

    Yes. I tried the 'Blinky' project for the MCB32F400 and it compiles with no errors.

    So I tried to download and make one of the examples, and in each case it cannot find the device header. Same if I try to write my own. It must be some sort of path issue that the example correctly manages.

Children