This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to configure a secondary clock crystal in Zephyr for NRF52833dk?

Hi all,

I am trying to interface a BLE mikrobus module onto a Yocto based Linux SBC. I need to use Zephyr's hci_uart example to flash it onto the module, the mikrobus BLE module is based on nrf52833dk. But it doesn't have a primary 32.678KHz crystal, so I need to use a secondary crystal. If anyone knows how to configure a secondary crystal in Zephyr for the hci_uart example and flash it onto the module, please help me out on this.

The code works fine when I use the EVK and fails to run on the Module. If anyone can help me on how to configure a second crystal it'll really be helpful to me.

Thanks in advance.

Parents Reply
  • It is a virtual COM port via UART.

    On the Nordic SDK, making the changes mentioned above and flashing this ble_app_uart example is working fine on the module. And

    #ifndef  NRF_SDH_CLOCK_LF_SRC
    #define NRF_SDH_CLOCK_LF_SRC 0
    #endif
    
    
    #ifndef  NRF_SDH_CLOCK_LF_ACCURACY
    #define NRF_SDH_CLOCK_LF_ACCURACY 1
    #endif
    

    These 2 macro definitions give me the same meaning as you had sent me before. i.e,

    # 32kHz clock source
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y

    but the others I'm not quite sure.

Children
Related