Hi there,
I'd like to use the preprocessor include macros feature of KDS to be able to build different firmware images on a per build profile basis for the various versions of our prototypes. Please see the following screenshot:
For some reason this doesn't work because:
I'd be really grateful if someone could help me.
Thanks in advance!
- Laci
解決済! 解決策の投稿を見る。
Hi Laci,
add your preprocessor symbols under the -D compiler (C, C++, assembler):
The other thing to know is: Eclipse uses the Indexer data base to gray out the sources. Depending on your project, I recommend you disable heuristics and rebuild the index, see Fixing the Eclipse Index | MCU on Eclipse
I hope this helps,
Erich
Hi Erich, and Jennie,
Thank you so much for your help! Erich's instructions totally solved my problem.
Now I have only one question left: What is the preprocessor include macros feature of KDS supposed to do? It seems to me that it doesn't work.
Have a nice day,
Laci
Hi Laci,
In addition, you can refer this article section2.1 with demo code:
How to support multiple targets in CodeWarrior(Classic, Eclipse)/KDS
I referred Erich's article when writing this section
https://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/
Hope this helps!
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Laci,
add your preprocessor symbols under the -D compiler (C, C++, assembler):
The other thing to know is: Eclipse uses the Indexer data base to gray out the sources. Depending on your project, I recommend you disable heuristics and rebuild the index, see Fixing the Eclipse Index | MCU on Eclipse
I hope this helps,
Erich