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.

How to take acrystal oscillator , in motorware?

I think:

void HAL_setupClks(HAL_Handle handle)
{
HAL_Obj *obj = (HAL_Obj *)handle;


// enable internal oscillator 1
CLK_disableOsc1(obj->clkHandle); //disable

// set the oscillator source
CLK_setOscSrc(obj->clkHandle,CLK_OscSrc_External);

// disable the external clock in
CLK_disableClkIn(obj->clkHandle);

// disable the crystal oscillator
CLK_enableCrystalOsc(obj->clkHandle);//enable

// disable oscillator 2
CLK_disableOsc2(obj->clkHandle);

// set the low speed clock prescaler
CLK_setLowSpdPreScaler(obj->clkHandle,CLK_LowSpdPreScaler_SysClkOut_by_1);

// set the clock out prescaler
CLK_setClkOutPreScaler(obj->clkHandle,CLK_ClkOutPreScaler_SysClkOut_by_1);

return;
} // end of HAL_setupClks() function

But no success;For products to mass production, emergency help!thank you