Our code is to be used on several KLxxx Kinetis processors and is now making heavy use of conditional compiling. Is there a way to gray out code that is conditionally compiled out when using the IAR SDK?
Solved! Go to Solution.
Hi
I don't know of a feature to do this in the IAR editor.
My recommendation is to edit code in a different editor - my preference is VisualStudio since this is vastly more powerful than IAR's editor and performs very good conditional code shading.
Personally I also run and debug the project in VS and just use IAR as cross-compile step, programming and low level debugging where necessary.
Regards
Mark
Professional support for Kinetis: http://www.utasker.com/index.html
Remote desktop one-on-one coaching: http://www.utasker.com/services.html
Getting started to expert videos: https://www.youtube.com/results?search_query=utasker+shorts
Hi
I don't know of a feature to do this in the IAR editor.
My recommendation is to edit code in a different editor - my preference is VisualStudio since this is vastly more powerful than IAR's editor and performs very good conditional code shading.
Personally I also run and debug the project in VS and just use IAR as cross-compile step, programming and low level debugging where necessary.
Regards
Mark
Professional support for Kinetis: http://www.utasker.com/index.html
Remote desktop one-on-one coaching: http://www.utasker.com/services.html
Getting started to expert videos: https://www.youtube.com/results?search_query=utasker+shorts
Is there somewhere I can read up on how to use VS on an IAR project? Searching the net didn't result in many hits. Otherwise I imagine this thread could go on forever.
Hi
VS can't open an IAR project but it is possible to create a project in VS based on the same files, which then gives better editing, viewing, etc.
The following is the uTasker OpenSource project which can be opened, edited, built in 10 different IDEs (including IAR/VS projects of the same code base)
http://www.utasker.com/forum/index.php?topic=1721.msg7086#msg7086
and the KL03 emulated in approx. real-time in VS to further increased development accuracy and efficiency in comparison to the traditional build/program/test techniques.
I have no guide/document on preparing an IAR project for VS (just some ready-made solutions in the link which are however uTasker project specific).
Regards
Mark