Stuck in while (!(LPC_SYSCON->SYSPLLCLKUEN & 0x01)); /* Wait Until Updated */

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

Stuck in while (!(LPC_SYSCON->SYSPLLCLKUEN & 0x01)); /* Wait Until Updated */

1,336件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Scribe on Tue Nov 27 11:38:14 MST 2012
Hi guys,

I've been attempting to implement basic SPI flash in the mass sotrage example for 11Uxx in 0.98/a for a while, however find that whenever I include my flash file and call the setup function I get stuck in the following setup loop:

while (!(LPC_SYSCON->SYSPLLCLKUEN & 0x01));     /* Wait Until Updated       */

What's making me lose my mind is that this loop should execute before any code as it's from system_LPC11UXX.c I don't have a clue how I got here. If I attempt to insert break-points it doesn't help, I get stuck here before I even reach the new code.

On the off chance this was a RAM space issue, I reduced a large memory structure in another file considerably to no avail, my new code doesn't use that much RAM so this seems unlikely...


I'm baffled guys, any idea?
ラベル(1)
  • USB

0 件の賞賛
返信
1 返信

707件の閲覧回数
tangtang78
Contributor I

You may have used software simulator instead of a hardware emulator. If so, you can add an initialization file with the content "map 0x40000000,0x400FFFFF read write".

0 件の賞賛
返信