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
Perhaps the lack of this file is due to the failure of the pre-build step? http://www.keil.com/forum/61714/
What software are you using here? And what to the instructions/read-me say about building the project?
"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.
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?
did you copy the complete directory structure. eye ee have you got a common subdirectory in the right place reletive to your source projekt.
If you copied a project I would recommend that you do a full rebuild of that original project and compare with the build logs for your project.
I think it's best if I just share the project so perhaps you experts can give it a try. I only would like to build it and flash it on my stm32.
I have uploaded the original project to my drive and the link is:
drive.google.com/open
So many thanks all of you, I hope you can figure it out and let me know (it's approximately a 2mb file).
Should you be asking here: https://www.plexim.com/support ... ?