Hi Mark,
Sorry not to be clear.
You don't need to call MCG twice.
To skip the autotrim feature do the following in init_bsp.c:
/* MCG initialization and internal oscillators trimming */
#if 0 //DES 0=test, 1=default code
if (CM_ERR_OK != _bsp_set_clock_configuration(BSP_CLOCK_CONFIGURATION_AUTOTRIM))
{
return MQX_TIMER_ISR_INSTALL_FAIL;
}
if (CM_ERR_OK != _bsp_osc_autotrim())
{
return MQX_TIMER_ISR_INSTALL_FAIL;
}
#endif
/* Switch to startup clock configuration */
if (CM_ERR_OK != _bsp_set_clock_configuration(BSP_CLOCK_CONFIGURATION_STARTUP))
{
return MQX_TIMER_ISR_INSTALL_FAIL;
}
Regards,
David