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

Building error, cannot open source input file, No such file or directory

A part of the code where it goes wrong in pil_symbols_c.c is shown below:

//this file can be linked such that no Flash memory is consumed
#ifndef PIL_PREP_TOOL
#include "pil_symbols_c.inc" // will be automatically generated
#endif

A part of the code where it goes wrong in pil_symbols_p.c is shown below:

// this file can be linked such that no Flash memory is consumed
#ifndef PIL_PREP_TOOL
#include "pil_symbols_p.inc" // will be automatically generated
#endif

Also, I don't know how to link those two files such that no Flash memory is consumed.

My main problem is that I get the following error when building the code and I would like to get some help. In the same folder there are like approximately ten .c and .h files in which there are no problems found when building the code.

*** Using Compiler 'V5.06 update 3 (build 300)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'BLDC_F401RE_USART'
compiling pil_symbols_p.c...
Common\pil_symbols_p.c(28): error: #5: cannot open source input file "pil_symbols_p.inc": No such file or directory #include "pil_symbols_p.inc" // will be automatically generated
Common\pil_symbols_p.c: 0 warnings, 1 error
compiling pil_symbols_c.c...
Common\pil_symbols_c.c(28): error: #5: cannot open source input file "pil_symbols_c.inc": No such file or directory #include "pil_symbols_c.inc" // will be automatically generated
Common\pil_symbols_c.c: 0 warnings, 1 error
".\Common\Demo\BLDC_PIL.axf" - 2 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:03