Gray out conditionally compiled out code in IAR?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Gray out conditionally compiled out code in IAR?

ソリューションへジャンプ
1,788件の閲覧回数
rickstuart
Contributor V

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?

0 件の賞賛
返信
1 解決策
1,579件の閲覧回数
mjbcswitzerland
Specialist V

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

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,580件の閲覧回数
mjbcswitzerland
Specialist V

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

0 件の賞賛
返信
1,579件の閲覧回数
rickstuart
Contributor V

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.

0 件の賞賛
返信
1,579件の閲覧回数
mjbcswitzerland
Specialist V

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

0 件の賞賛
返信