I am moving a K60 project from CW10.3 w/MQX to KDS and stumbled upon a problem that I am sure there is a simple answer to.
(yet google searches don't reveal it to me...)
In CW10 (and many earlier versions of CW) there is an option for a "prefix" file which is a file that gets included before the target file being complied.
It is used to setup the pre-processor environment.
In CW10 this is what it looks like
How can I do that in KDS?
Tom
Solved! Go to Solution.
Hi Tom,
see Preprocessor Options - Using the GNU Compiler Collection (GCC)
-include
file#include "file"
appeared as the first line of the primary source file. However, the first directory searched for file is the preprocessor's working directory instead of the directory containing the main source file. If not found there, it is searched for in the remainder of the #include "..."
search chain as normal. If multiple -include options are given, the files are included in the order they appear on the command line.
I hope this helps,
Erich
Hi Tom,
see Preprocessor Options - Using the GNU Compiler Collection (GCC)
-include
file#include "file"
appeared as the first line of the primary source file. However, the first directory searched for file is the preprocessor's working directory instead of the directory containing the main source file. If not found there, it is searched for in the remainder of the #include "..."
search chain as normal. If multiple -include options are given, the files are included in the order they appear on the command line.
I hope this helps,
Erich
Yes I found that at mcuonline... Thanks was coming back to update...
One thing that was surprising is that I tried using a variable and while I could use the KSDK path variables, I could not use my own defined variable that was in the same table under Properties->Resource->Path Variables
I may need to make a simple example to demonstrate this
tom
Hi Tom,
Don't know if this can help you but you can have a look the the doc:
Importing MCU V10.6 projects (sample, using PE and MQX) under KDS
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------