Sorry, I do not use demo now, I am designing my owns.
my program most time ran to 0x300000B0 when clicked debug-button in keil uVsuion, but 0x300000B0 is ROM !. Generally we did not doubt NXP's code, so we thinked that is our error, so let harware deigner checked and check, so hardware deigner quarreled with software engineer, so debuged one by one disassemble codes with clear run-to-main setting, so into startup,then chip codes, and then board codes, and inside board_sysinit, (these code is similar as NXP's demo) found error occurred at Chip_Clock_SetMainClockSource(SYSCON_MAINCLKSRC_PLLOUT); witch is a function at driver.
so Why? Why? Why? PLL error?
Try! Try! and Try! That is full of painful !
All in All, found, the default : #define BOARD_MAINCLOCKRATE (100000000) //100Mhz
When: #define V4_UID (0x08C1FECE)
if (LPC_SYSCON->DEVICE_ID1 < V4_UID) { /* Older version of chips does not support > 96MHz (see errata) */
freq = 96000000;
so BOARD_MAINCLOCKRATE is 100Mhz.
and our lpc54102 CPUID just is 0x08C1FEFE ! also we had some 0x0881FECE .
in fact for 0x08C1FEFE, some chip can use 100M, some chip not, sometime can use, some time not ! oh, Like a Ghost!
When we force let BOARD_MAINCLOCKRATE = 96 Mhz for any chip. All Ghosts disapper. but till now poor hardware and software engineers had stick on this for half a month like a fool !!!
In fact, half years ago, this questions have appeared at https://community.nxp.com/message/856916?commentID=856916#comment-856916
Ah, NXP, Could mind supply more details on manuals/demo coded and comments/PCB design samples/answer questions in time ? for example STM can supply schematics/PCB/BOM/ and countless demo and .... for their eval boards, Why NXP not all, only part ? You know, only only when your chips are used, you can back your money, so Please destroy barriers ! Compare the type of questions on community, NXP will know most questions are specificin NXP, but are systemtic in STM community. that is why NXP is only No.2 on market.
If not our header want use 2 cores like LPC43xx and LPC54xx, I sure I will abandon you !
Now, NXP owns freescale, and Qualcomm got NXP,
Can we pre-know the the fate of LPC series ??