AnsweredAssumed Answered

Infinite loop created by PE

Question asked by John Petersen on Nov 22, 2011
Latest reply on Dec 5, 2011 by CrasyCat

Why does Processor expert generate an infinite loop in an area that is controlled by the code generation tool?

I'm using MC9S08EL32CTL.

Below is the code it generates for the main function. Near the bottom is the forever loop it creates where it says DON'T MODIFY THIS CODE!! . If I comment this out and generate the code again, it gets replaced just as before.  I don't want an infinite loop here.  Why is PE doing this? Is there a setting I need to change?


void main(void)
  /* Write your local variable definition here */

  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
  /*** End of Processor Expert internal initialization.                    ***/

  /* Write your code here */
  /* For example: for(;:smileywink: { } */

  /*** Don't write any code pass this line, or it will be deleted during code generation. ***/
  /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
  /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/