Content originally posted in LPCWare by Dan Griffin on Tue Apr 22 11:28:56 MST 2014
Final Solution:: For some reason the project default build for the lpcxpresso for the LPC11xx using CMSISv2p00_LPC11xx has in the file system_LPC11xx.c default set to and external clock!
#define SYSPLLCLKSEL_Val 0x00000001 {line 128}
// changed value from 1 to 0 to select IRC inplace of the ext crystal clock.
Note my board has no external crystal, so when the code try to wait until the PLL lock { which never happen--It never got out of the while loop}
Why is default is set to ext crystal clock????
Making the change to line 128 now permits the hex file downloaded by Flash Magic to run correctly. The test board LPCXpresso Board has a external crystal installed, so this section of code did not hang, before reiniting the clock to the IRC osc in the main program.