Hanging in SystemInit() while (!(LPC_SYSCON->SYSPLLSTAT & 0x01)); /* Wait Until PLL Locked */

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hanging in SystemInit() while (!(LPC_SYSCON->SYSPLLSTAT & 0x01)); /* Wait Until PLL Locked */

392 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by avass on Sat Apr 06 23:57:49 MST 2013
I am using LPC_Link to connect to my own 1115 based design via JTAG reset/swdio/swdclk. There is no external clock and the chip's VDD is 2.3V.

I am trying to run the code I had on a LPCXpresso LPC1115, but it seems that SystemInit() func is hanging at "Wait Until PLL Locked" in system_LPC11xx.c. I've tried to change the SYSPLLCTRL_Val to a couple of different values, but it still hangs. SYSPLLCLKSEL is 1.

Any ideas on either what kind of values should I try or how to debug why it's hanging.

Thanks!
Labels (1)
0 Kudos
2 Replies

348 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by avass on Sun Apr 07 10:50:08 MST 2013

Douh! Yes, you are right... Thank you!

0 Kudos

348 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DF9DQ on Sun Apr 07 02:49:27 MST 2013

With "no external clock" do you mean your design does not use the crystal oscillator?
If that's the case, you should use SYSPLLCLKSEL = 0 to select the internal RC oscillator, because SYSPLLCLKSEL = 1 selects the crystal oscillator.

0 Kudos