My code in main() gets deleted by „Clean Project“

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

My code in main() gets deleted by „Clean Project“

ソリューションへジャンプ
806件の閲覧回数
rolffreitag
Contributor III

I created a project following the example at

 

http://www.element14.com/community/community/designcenter/kinetis_kl2_freedom_board/blog/2014/09/22/...

 

for the board twrk60d100.

But a „Clean Project“ always deletes my code in main(), with the error message „End of main routine was updated in main module. (in the module main.c)“.

 

I can reproduce this under 32 and 64 bit Windows 7.

 

 

The code is added at the for(;;)-loop, between the lines

 

  /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/

 

and

 

  /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/

 

So my code is where modified code should be.

How can i stop KDS from deleting my code?

ラベル(1)
0 件の賞賛
返信
1 解決策
636件の閲覧回数
rolffreitag
Contributor III

I found a solution by placing the code at the line

  /* Write your code here */

The comments in the generated main.c are misleading. The line should have the comment

  /* Write your code only here */

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
637件の閲覧回数
rolffreitag
Contributor III

I found a solution by placing the code at the line

  /* Write your code here */

The comments in the generated main.c are misleading. The line should have the comment

  /* Write your code only here */

0 件の賞賛
返信