This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1292NCPDT: SysCtlClockFreqSet is crashing the controller.

Part Number: TM4C1292NCPDT
Other Parts Discussed in Thread: TM4C1294NCPDT

Hi,

I am using 25mHZ crystal and trying to configure microcontroller with following API.

output_clock_rate_hz = MAP_SysCtlClockFreqSet(
                                                                                (SYSCTL_XTAL_25MHZ | SYSCTL_OSC_MAIN |
                                                                                SYSCTL_USE_PLL | SYSCTL_CFG_VCO_240),
                                                                                SYSTEM_CLOCK);

But this function is crashing at line 2320 (TivaWare_C_Series-2.2.0.295 )

//
// Set the oscillator source.
//
HWREG(SYSCTL_RSCLKCFG) |= ui32OscSelect;

The value in ui32OscSelect is 0x03300000. I am using the same function for tm4c1294ncpdt it works fine. HW wise clock section has same design for tm4c1292 and tm4c1294.

Is it a known issue or am I missing something ? I am using tivaware (TivaWare_C_Series-2.2.0.295 ). What is the solution or suggestion 

Regards,

Parvez Akhtar

  • Hello Parvez,

    I am assuming this is a custom designed PCB. If so can you check that the crystal and the capacitors are properly populated? Can you verify it is the correct 25 MHz crystal?

    The API call is accurate to the description of your expected system setup.

    Typically when I've seen issues like this, it's been because there is a hardware issue on the board somewhere. More than once the issue had been the incorrect crystal had been populated.

    Best Regards,

    Ralph Jacobi