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.
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.
Martin,
Not sure what the issue is, so I just copied the blinky example out of the Keil area, and deleted all their unique files and added my own. That seems to compile.
I gather that maybe the new project wizard does not include all the files you need or something, or configure the paths properly.
Thanks, C
Does your project have all the appropiate include paths?
Check in options for target/ c/c++ tab