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.

CC2745R10-Q1: How to force use clock source on CC23xx/CC27xx?

Part Number: CC2745R10-Q1

Tool/software:

Hi all,

I got a method to force using external HF clock source on CC2642 and I want to use the same on CC2745/CC2340 but I cannot find the API.

Could you please help provide a method to force use a certain clock source?

    #include <ti/devices/cc13x2_cc26x2/driverlib/osc.h>

    uint32_t hf_source = OSCClockSourceGet(OSC_SRC_CLK_HF);
    if (hf_source != OSC_XOSC_HF)
    {
        OSCClockSourceSet(OSC_SRC_CLK_HF, OSC_XOSC_HF);
        while (!OSCHfSourceReady()) {}
        OSCHfSourceSwitch();
    }
    hf_source = OSCClockSourceGet(OSC_SRC_CLK_HF);

Thank you.

  • Hello,

    The HFXT is selected and started in Power_init and there is no need to explicitly choose it. We do not offer configurability on the HF clock source.

    Best,

    Nima Behmanesh

  • Hi Nima,

    Thanks, got it.

    The following question would be that is there possibility that the HF XT is not driven to save power or for some other reason?

    Actually, the issue I faced on CC2642 is the UART is initiated driven by HF XT, but I use UART for transfer the binary files for FW upgrade in the user second bootloader. We see the HF XT is not work during the baudrate of the UART is not correct (the CCFG is not erased and reprogrammed) when the chip surface temperature is very high (95°C). We suspect it's the HF OSC is working to drive the UART and after we force to use HF XT like I write down above, it can solve the problem.

    Would it transfer to the internal HF RC automatically for some reason to drive the UART? In TRM, the UART is driven by CLKSVT, so the question is about the strategy of clock source changes on CLKSVT (HFXT or HFOSC).

  • Hello,

    The CC2642 is a different device where you should be able to control the switching between HFXT. The CC2745 removed this and manages itself.

    Best,

    Nima Behmanesh

  • OK. Got you, thanks.