We are using NXP LPC2366 (100 Pins) microprocessor in a project. The version of uVision is 3.60.
We have received new boards implementing the LPC2366 but we are not able to start the boards. A break point in the start up file (LPC2300.s) is never reached.
The power connections look good and we think we have a clock problem.
1)We decided to use the internal RC clock source (4.0 MHz) but the program never exits the following loop (PLL is not locked)
; Wait until PLL Locked PLL_Loop LDR R3, [R0, #PLLSTAT_OFS] ANDS R3, R3, #PLLSTAT_PLOCK BEQ PLL_Loop
The LPC2300.s file is configured with the following parameters :
CLOCK_SETUP EQU 1 SCS_Val EQU 0x00000000 ; no main osc CLKSRCSEL_Val EQU 0x00000000 PLLCFG_Val EQU 0x00000023 ; N=1 M=35 CCLKCFG_Val EQU 0x00000004 USBCLKCFG_Val EQU 0x00000005 PCLKSEL0_Val EQU 0x00001000 PCLKSEL1_Val EQU 0x00000000
Any suggestion would be appreciated.
2) We are working on the boot process flowchart of the NXP component. We would like to understand why the Ulink2 debugger can't stop in the LPC2300.s file. Could you describe us the steps performed by the controller before the startup process ? How can we check that ?
Thanks for your assistance.