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.

CC2640: derive system clocks from HF XTAL (24 MHz)

Other Parts Discussed in Thread: CC2640

Hello

What oscillator is a default source for system clocks in TI-RTOS for CC2640 ? The only information I have found in configuration file is 48MHz CPU frequency. I need to make HF XTAL (24 MHz) as clock source for my application. How can I do it by means of TI-RTOS ?


Regards

  • Mikhail,

    Which version of TI-RTOS are you using, and which tools (CCS or IAR)?

    The default high frequency (HF) clock source is selected via customer configuration setting in a file named ccfg.c.  I expect you have a file ccfg.c in your application project.  It may have actual content, or it might do a “#include <startup_files/ccfg.c>” to pull in the default configuration structure as defined by the driver library (driverlib).  If the later, there are comments in this file about how to copy the default file into your project, and change the settings locally.  

    In the default ccfg.c there is a #define to define whether the HF source is a 48MHz or 24MHz crystal, for example:



    I think the CPU will always run at 48MHz, and this setting just defines the frequency of the HF crystal you are using.  Does this answer your question?

    Thanks,
    Scott

  • Hello Scott.

    I use tirtos_cc13xx_cc26xx_2_18_00_03 and CCS 6.2.

    SET_CCFG_MODE_CONF_XOSC_FREQ defines XOSC source (24 MHz xtal, 48 MHz xtal, HPOSC). But there is no setting which defines the source oscillator for SCLK_HF (it is 48-MHz RC oscillator by default).

    But I have found other way to achive my goal and my question is no more actual.

    Thank you!

    Regards.
  • There was a suggested answer and since there has been no active on this thread for more than a week, the suggested answer was marked as verify. Please feel free to select the "Reject Answer" button and reply with more details.