AnsweredAssumed Answered

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

Question asked by Rolf Freitag on Jul 8, 2015
Latest reply on Jul 8, 2015 by Rolf Freitag

I created a project following the example at


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




  /*** 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?