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
"Also, I don't know how to link those two files such that no Flash memory is consumed."
Now why would you want that? Files are added to the link process with the sole goal of adding useful content to the flash memory. If that happens to be code, or bitmaps of characters and symbols is irrelevant - the purpose is to fill the flash will all needed information for the embedded device to perform the requested task. Any object file that doesn't add anything to the output file isn't really needed in the link process.