Hello bkiss@xaltenergy.com,
I checked with our compiler experts on this. In reference to the other thread you listed:
There's an error your program, which by definition of the C language standard, would cause undefined behavior of the compiler. Typically, undefined behavior would mean undefined at runtime, but the compiler protected the user against unpredictable runtime behavior by just exiting with an internal error.
Std_ReturnType Mcu_InitClock( void )
{
uint16 u16FRef, u16FVco;
uint8 u8SynDiv, u8RefFrq, u8VcoFrq, u8RefDiv;
uint8 u8Tmp, u8CpmuRefDivReg, u8CpmuSynrReg;
boolean bFound;
Mcu_InitClock is declared and defined with return type Std_ReturnType.
The function does not return a value:
CPMUHTCTL = 0x00U;
CPMUVREGCTL = 0x01U;
// #endif
}
This is an error in the program.
So this may apply to your issue as well.
Best Regards,
Mike