Content originally posted in LPCWare by DR50 on Tue Oct 02 11:17:33 MST 2012
Hi,
I'm trying to migrate a little program, we wrote for the LPC1343 Xpresso-Board to an actual LPC1347 - Board.
Running the code didn't work, when tracing the program I saw it was stopped in the system - setup "system_LPC13xx.c"
at the "while" - line in the sysPLLCLK - Setup:
LPC_SYSCON->SYSPLLCLKSEL = SYSPLLCLKSEL_Val; /* Select PLL Input */
LPC_SYSCON->SYSPLLCLKUEN = 0x01; /* Update Clock Source */
LPC_SYSCON->SYSPLLCLKUEN = 0x00; /* Toggle Update Register */
LPC_SYSCON->SYSPLLCLKUEN = 0x01;
-> while (!(LPC_SYSCON->SYSPLLCLKUEN & 0x01)); /* Wait Until Updated */
In the "LPC13xx.h" - file, I can see, that "SYSPLLCLKUEN" is located at offset 44, behind "SYSPLLCLKSEL".
A look to the manuals of LPC1343 and LPC1347 brings a difference in register set:
LPC1343 has in "system control block" at 040 SYSPLLCLKSEL and at 044 SYSPLLCLKUEN,
LPC1347 has SYSPLLCLKSEL at 040 to, but "reserved" at 044.
Is it the reason for this malfunction?
I had a new try with the little "Blinky" - Example. Running it on LPC1343 was no problem - so my environment must not
be so bad. But bringing it to the LPC1347 - board, the program stopped at the same position.
So do i need another CMSIS-version? I tested CMSISv1P30_LPC13xx and CMSISv2P00_LPC13xx. Has anyone else the LPC1347-board running - with wich CMSIS?
Is there another CMSIS - version available, or what can I do.