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.

CC2642R-Q1: External GPIO Clock (32768Hz)

Part Number: CC2642R-Q1
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Good afternoon,

I am developing an IOT Bluetooth system with a TCXO clock with a maximum deviation of 3 ppm.
This is to get the timing as accurate as possible during its lifetime.

Unfortunately I'm having a problem setting it up.
In the sysconfig I cannot set anything for an external clock on a GPIO pin
Unfortunately, this definition does not work in the bootloader either. Do you have a tip?

// EXTERNAL 32.768KHz CRYSTAL

#define SET_CCFG_MODE_CONF_SCLK_LF_OPTION 0x1 // External LF clock

#define SET_CCFG_EXT_LF_CLK_DIO                                0x00 // DIO0 for using external LF clock

  • Hello Jasper, 

    Can you please describe what you are trying to do with a little more depth? I believe you are wanting to use an external LF clock for the clock of the device? 

    If so, in SysConfig, under Device Configuration-> LF Clock Source, you can select the LF clock for 'External LF Clock'. This will allow you to select DIO and RTC increment. 

    Let me know if this isn't what you are looking for. 

    Thanks, 

    Isaac

  • Good morning,
    
    Unfortunately I cannot set a device configuration because of the bootloader.
    I get the following. Can you help me to have the right defines to set the LF clock?


  • Hello Jasper, 

    For your situation, you are using a LF clock, not a LF crystal is that correct?  Additionally, what SDK version are you using, and are you using an example project to build your desired project? 

    Correct me if I am wrong here. You want to use the bootloader for this project, but you cannot set an external input for a LF clock source while within the bootloader? Do you need the external LF clock for the bootloader, or could you boot with the chip LF/HF oscillator, then switch the to external LF clock source? 

    Let me know. 

    Thanks, 

    Isaac

  • Hello Isaac,

    I use simple peripheral with OAD/BIM and simple serial socket. (UART over Bluetooth) I am using SDK version 7.40.
    Because of the accuracy and small PCB, I do not use an LF crystal and only an LF clock.
    I will try another project without BIM and see what the settings for an LF clock are there. Then I can possibly copy this into the ccgf.c


  • Hello Jasper, 

    I am still looking into your question, and I have a few additional follow up questions. 

    1. Is the LF clock the only external clock/crystal on the PCB? 

    2. Can you use the internal RC oscillators on the CC2642 during the bootloader stage, then switch to the external clock source? 

    3. When are you entering the bootloader stage? Is the project going to be receiving OAD updates frequently? 

    Let me know!

    Thanks, 
    Isaac

  • Hello Jasper, 

    Within the OAD/BIM projects, the CCFG is configured through the BIM project. You can do this within the ccfg.c file, as the BIM projects do not have a Sysconfig file. Please see the image below for the location in ccfg.c to do this.

    Additionally, please look into section 11.2.1.1 of the CC26x2 Technical Reference Manual

    Let me know if this help! 

    Thanks, 
    Isaac

  • Good morning
    
    It has now been successful. 
    The defines in the bootloader were correct but I forgot to set the pin as input in the sysconfig. 
    The external clock now works :)