This issue is with Processor Expert auto-generating code into the CPU.c file that no longer not exist, specifically into the pe_low_level_init() function.
FSKOut_Out_IRQ_EnEvent = FALSE; /* Disable events */ <-- EnEvent variable is supposed to be removed.
1. I have delete the enitre CPU.c file, built the code and it failed because the CPU.c file was erased.
2. Next, I had Processor Expert regenerate all the files and CPU.c file came back with the same extra code that is not supposed to be there.
3. I built the code again and of course it fails because there is code in there with an unknown variable reference.
The code is definitely coming back over and over, each time I try to delete it, it is auto-generated again.
When I include a new FeeCntr component, I set Interrupts enabled, OnInterrupt() event method selected, "Enable Events in Init Code" turned off and then I have EnableEvent and DisableEvent methods selected to be generated.
Here is another problem:
When I use PITload0 as the timer source, Processor Expert errors out and fails to generate code, saying that I need to contact Freescale Support. I am using MC9S12XA256 processor.
I have tried this over and over adding a new component each time and it gives the same errors under all the above listed conditions.