Content originally posted in LPCWare by jschimpf255 on Thu Jun 19 04:53:23 MST 2014
Thank you all for your help, answers to your questions are below.
---Chip markings (misread them...)
The chip I have is marked with a 102 not 101, sorry misread the very faint markings. But still there is no LCP1114/102 in my list of MCU settings.
---On the Jumper use on the Link-2
My test breadboard is powered from a lab power supply and I don't connect to the Vdd from the probe. (Just mRESET,GND,SWCLK,SWDIO) , If I leave off the J2 and try to load code I get:
Error: Error reported by server (relinkserv):
RedlinkAPI: Wire Ack Fault - target connected?
Redlink Server have been terminated and will be restarted.
:
:
If I put in J2 on the Link-2 board it works fine.
--Clock PLL problem
And lastly on the hanging waiting for the PLL. I am using the nxp_epressso_11U14_freertos_blinky sample project. I don't make any changes in the code so whatever clock setup it uses is what I use. Can you offer any suggested changes I should make here ?
STATIC void SystemSetupClocking(void)
{
volatile int i;
/* Powerup main oscillator */
Chip_SYSCTL_PowerUp(SYSCTL_POWERDOWN_SYSOSC_PD);
/* Wait 200us for OSC to be stablized, no status
indication, dummy wait. */
for (i = 0; i < 0x100; i++) {}
/* Set system PLL input to main oscillator */
Chip_Clock_SetSystemPLLSource(SYSCTL_PLLCLKSRC_MAINOSC);
/* Power down PLL to change the PLL divider ratio */
Chip_SYSCTL_PowerDown(SYSCTL_POWERDOWN_SYSPLL_PD);
/* Setup PLL for main oscillator rate (FCLKIN = 12MHz) * 4 = 48MHz
MSEL = 3 (this is pre-decremented), PSEL = 1 (for P = 2)
FCLKOUT = FCLKIN * (MSEL + 1) = 12MHz * 4 = 48MHz
FCCO = FCLKOUT * 2 * P = 48MHz * 2 * 2 = 192MHz (within FCCO range) */
Chip_Clock_SetupSystemPLL(3, 1);
/* Powerup system PLL */
Chip_SYSCTL_PowerUp(SYSCTL_POWERDOWN_SYSPLL_PD);
/* Wait for PLL to lock */
while (!Chip_Clock_IsSystemPLLLocked()) {}
-------------------
I changed the line where is selects the main OSC to use SYSCTL_PLLCLKSRC_IRC
i.e.changed
/* Set system PLL input to main oscillator */
Chip_Clock_SetSystemPLLSource(SYSCTL_PLLCLKSRC_MAINOSC);
to
/* Set system PLL input to main oscillator */
Chip_Clock_SetSystemPLLSource(SYSCTL_PLLCLKSRC_IRC);
and it still hangs in the same place.
Thank you all for your help. I really really like the tools.
--jim schimpf