Hello,
Dev board: EK-TM4C1294XL
Tiva™ C Series TM4C1294 Connected
LaunchPad Evaluation Kit
I am trying to use the SysCtlClockFreqSet function in the driverlib library, but cannot get it to use the main oscillator with the way they have specified (SYSCTL_OSC_INT works fine).
This line returns 0:
volatile uint32_t freq = SysCtlClockFreqSet(SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480, 50000000);
I am setting everything written in the documentation for this function, but it refuses to set the clock frequency. However, if I add SYSCTL_XTAL_25MHZ (which is not documented for this function), the frequency can be set. eg.
volatile uint32_t freq = SysCtlClockFreqSet(SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480 | SYSCTL_XTAL_25MHZ, 120000000);
This code returns 120000000, as required.
My question is SYSCTL_XTAL_25MHz is not needed for SysCtlClockFreqSet in the documentation. Was this is mistake, or am I doing something hacky?
Thanks