Migration from CW10.3 to KDS 3.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Migration from CW10.3 to KDS 3.0

Jump to solution
976 Views
w2vy
Contributor V

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

 

32275_32275.pngCW10.3_prefix.png

 

How can I do that in KDS?

 

Tom

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
771 Views
BlackNight
NXP Employee
NXP Employee

Hi Tom,

see Preprocessor Options - Using the GNU Compiler Collection (GCC)

-include file
Process file as if #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

View solution in original post

0 Kudos
Reply
3 Replies
772 Views
BlackNight
NXP Employee
NXP Employee

Hi Tom,

see Preprocessor Options - Using the GNU Compiler Collection (GCC)

-include file
Process file as if #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

0 Kudos
Reply
771 Views
w2vy
Contributor V

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

0 Kudos
Reply
771 Views
trytohelp
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply