Compiler stuck at following statement, LPC1317

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Compiler stuck at following statement, LPC1317

617件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Deepak Bansal on Thu Sep 13 04:21:44 MST 2012
Hi,

I am using LPC1317, Keil 4.54.0.0,

Initially at System_init() in system_LPC13Uxx.c, while simulating compiler is not able to cross, while statement.

[B][I]#if ((MAINCLKSEL_Val & 0x03) == 3)                /* Main Clock is PLL Out    */
  LPC_SYSCON->SYSPLLCTRL    = SYSPLLCTRL_Val;
  LPC_SYSCON->PDRUNCFG     &= ~(1 << 7);          /* Power-up SYSPLL          */
  while (!(LPC_SYSCON->SYSPLLSTAT & 0x01));      /* Wait Until PLL Locked    */
#endif[/I][/B]


That means PLL do not get locked. What could be the error.
Below are the values which I am using:
#define CLOCK_SETUP           1
#define SYSOSCCTRL_Val        0x00000000              // Reset: 0x000
#define WDTOSCCTRL_Val        0x00000000              // Reset: 0x000
#define SYSPLLCTRL_Val        0x00000025              // Reset: 0x000
#define SYSPLLCLKSEL_Val      0x00000000              // Reset: 0x000
#define MAINCLKSEL_Val        0x00000000              // Reset: 0x000
#define SYSAHBCLKDIV_Val      0x00000001              // Reset: 0x001
#define USBPLLCTRL_Val        0x00000023              // Reset: 0x000
#define USBPLLCLKSEL_Val      0x00000001              // Reset: 0x000
#define USBCLKSEL_Val         0x00000000              // Reset: 0x000
#define USBCLKDIV_Val         0x00000001              // Reset: 0x001
0 件の賞賛
返信
2 返答(返信)

591件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Sep 14 01:26:35 MST 2012
First of all, it in the compiler being stuck. It is *your code*.

Searching the forum will help you. For example
http://knowledgebase.nxp.com/showthread.php?t=3420
http://knowledgebase.nxp.com/showthread.php?t=2432

And before you say they are not for LPC1317, read the postings - the problems are common across most of the LPC parts.
0 件の賞賛
返信

591件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Deepak Bansal on Fri Sep 14 01:14:57 MST 2012
Any help abt this...:(
0 件の賞賛
返信