I have a truly odd issue. I have the function system_initialize() which sets up my system clock to use an external oscillator.// CPDIV 1:1; RCDIV FRC/1; DOZE 1:8; DOZEN disabled; ROI disabled;
CLKDIV = 0x3000;
// TUN Center frequency;
..
CLKDIV = 0x3000;
// TUN Center frequency;
..