Hi
I have code snippet here down which tries to take 100Mhz through PLL and monitors for PLL stability
void SetPLL100Mhz(void)
{
// bypass PLL
CONFIG_MSW = 0x0; //#define CONFIG_MSW *(ioport volatile unsigned *)0x1C1F
PLL_CNTL2 = 0x8000; //#define PLL_CNTL2 *(ioport volatile unsigned *)0x1C21
PLL_CNTL4 = 0x0000; //#define PLL_CNTL4 *(ioport volatile unsigned *)0x1C23
PLL_CNTL3 = 0x0806; //#define PLL_CNTL3 *(ioport volatile unsigned *)0x1C22
PLL_CNTL1 = 0x8BE8; //#define PLL_CNTL1 *(ioport volatile unsigned *)0x1C20 // PLL Control Register #1
while ( (PLL_CNTL3 & 0x0008) == 0);
// Switch to PLL clk
CONFIG_MSW = 0x1;
}
what is happening now is DSP is hanging exactly at the while loop above and never coming out what may be the reason,actually this problem is changing with time the DSP some times bypass this problem ,i think mostly the problem is with my DSP core and my hardware,so i had make sure my PLL voltage in is correct or not,that is also fine i just want to know what may be the problem of this abnormal behavior,try to pull me out of this.
moreover up on debugging at the while loop i get a error like no enough stack.
help me out this is urgent :)