Other Parts Discussed in Thread: C2000WARE
Hi Champ,
I am asking for my customer. Using F28P650SK in 100-pin.
They have selected a 10MHz crystal as clock source. The VDDOSC is supplied with 3.3V and 0.1-uF de-cap, and crystal is connected between X1 and X2 with VSSOSC ground connected + Cload + Rd with 470 Ohm as below figure shown.
The crystal spec. is provided by crystal vendor.
The clock setup is as follows.
For 10MHz crystal,
//*****************************************************************************
//
// Macro definitions used in device.c (SYSPLL / LSPCLK)
//
//*****************************************************************************
#define USE_PLL_SRC_XTAL
#if defined(USE_PLL_SRC_XTAL)
//
// Input Clock to SYSPLL (OSCCLK) = XTAL = 10 MHz
//
#define DEVICE_OSCSRC_FREQ 10000000U
//
// Define to pass to SysCtl_setClock(). Will configure the clock as follows:
// SYSPLL ENABLED
// SYSCLK = 200 MHz = 10 MHz (OSCCLK) * 40 (IMULT) / (1 (REFDIV) * 2 (ODIV) * 1 (SYSCLKDIVSEL))
//
#define DEVICE_SETCLOCK_CFG (SYSCTL_OSCSRC_XTAL | SYSCTL_IMULT(40) | \
SYSCTL_REFDIV(1) | SYSCTL_ODIV(2) | \
SYSCTL_SYSDIV(1) | SYSCTL_PLL_ENABLE | \
SYSCTL_DCC_BASE_0)
#define DEVICE_SYSCLK_FREQ ((DEVICE_OSCSRC_FREQ * 40) / (1 * 2 * 1))
Somehow, as above setup, device couldn't bring up properly with external crystal.
Then, we change back to INTOSC, it works properly.
So that, we try to debug with JTAG in emulation mode. It is discovered the code is stuck in this function all the time.
Could the expert kindly provide some troubleshooting here?
Thanks for the support.
Regards,
Johnny

(example in bit-field)