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

Parents
  • I solved that problem, I looked at an example Blinky file and set the Output target settings the same as that one.

    Now I don't know how to solve this problem.

    In the documentation it simply says, open the provided project and choose the MCU and communication link and build the project. After succesful build program the MCU, that's all it says.

    In the code (commented) it says "will be automatically generated" but should I change something in the settings/path that that will be done and hopefully the error will be gone?

Reply
  • I solved that problem, I looked at an example Blinky file and set the Output target settings the same as that one.

    Now I don't know how to solve this problem.

    In the documentation it simply says, open the provided project and choose the MCU and communication link and build the project. After succesful build program the MCU, that's all it says.

    In the code (commented) it says "will be automatically generated" but should I change something in the settings/path that that will be done and hopefully the error will be gone?

Children