We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have created a new project and am trying to compile some basic GPIO code. The compiler output is generating this message:
"test.c(14): error: #5: cannot open source input file "stm32f10x_lib.h": No such file or directory"
I have the target device set to STM32F105VB and the Debug to use the "ST-Link Debugger" specifically the "ST-LINK/V2". I made sure there is an extra line at the end of the .c file.
#include <stm32f10x_lib.h> // STM32F10x Library Definitions is the first non-comment line in the code.
What am I doing wrong?
I guess you are using the MCBSTM32C board. Should have figured that out right away.
If you have this directiry ( Under the Keil directory )
C:\Keil_v5\ARM\Boards\Keil\MCBSTM32C
You will see some examples there.
If you don't you can I think you may have to download and run the Cortex M legacy executable file.
www2.keil.com/.../
Also, There are more examples at
C:\Keil_v5\ARM\Examples
And I believe you can get these examples to also run on your board because they target the same chip or a close cousin to you chip.