Tool/software: Code Composer Studio
Greetings! I am using this uC for a very first time. So I`ve made a simple blink test from the examples - > Example_2803xLEDBlink.c. Everything works. So I`ve tried to switch to external oscillator. I have 10MHz crystal. But the problem is when I call XtalOscSel from SysCtrl and next Xtal_PLL_Init(DSP28_PLLCR,DSP28_DIVSEL), my program blocks(stops) here:
if (SysCtrlRegs.PLLSTS.bit.MCLKSTS != 0)
{
EALLOW;
//
// OSCCLKSRC1 failure detected. PLL running in limp mode.
// Re-enable missing clock logic.
//
SysCtrlRegs.PLLSTS.bit.MCLKCLR = 1;
EDIS;
//
// Replace this line with a call to an appropriate
// SystemShutdown(); function.
__asm(" ESTOP0"); // Uncomment for debugging purposes
}
I suppose there is some kind of problem, but I`m not sure where to seach for. Any ideas?
Thanks!