Setting system to internal RC oscillator

Hi,

 I am using nRF connect SDK  V2.0.2 chipset 52832 built using VS code.

 Need to move the setup from an external clock to an internal RC oscillator.

 When I disable "Hardware Clock Controller Support" in KConfig I get errors. Not able to select any option in the "32Khz" clock source. Image attached. Please suggest how to enable the internal oscillator 

Parents
  • 32KHz clock source have direct dependency on CLOCK_CONTROL that you are trying to disable.

    32KHz clock source
    No description available.
    Direct Dependencies: (=y)
    CLOCK_CONTROL_NRF (=y)
    && CLOCK_CONTROL (=y)

    You need to enable CLOCK_CONTROL and CLOCK_CONTROL_NRF  to have this option available, else they are greyed out.

  • Hi Susheel,

         I am not able to find these options under KConfig. Copying the KConfig file from the build. Can you please let me know which option I should change?

    menu "nrf (C:/Users/Sachin/ncs/v2.0.2/nrf)"
    osource "C:/Users/Sachin/ncs/v2.0.2/nrf/Kconfig.nrf"
    config ZEPHYR_NRF_MODULE
    	bool
    	default y
    endmenu
    menu "mcuboot (C:/Users/Sachin/ncs/v2.0.2/bootloader/mcuboot)"
    osource "$(ZEPHYR_MCUBOOT_KCONFIG)"
    config ZEPHYR_MCUBOOT_MODULE
    	bool
    	default y
    endmenu
    menu "mbedtls (C:/Users/Sachin/ncs/v2.0.2/modules/crypto/mbedtls)"
    osource "$(ZEPHYR_MBEDTLS_KCONFIG)"
    config ZEPHYR_MBEDTLS_MODULE
    	bool
    	default y
    endmenu
    menu "trusted-firmware-m (C:/Users/Sachin/ncs/v2.0.2/modules/tee/tf-m/trusted-firmware-m)"
    osource "$(ZEPHYR_TRUSTED_FIRMWARE_M_KCONFIG)"
    config ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
    	bool
    	default y
    endmenu
    menu "cjson (C:/Users/Sachin/ncs/v2.0.2/modules/lib/cjson)"
    osource "$(ZEPHYR_CJSON_KCONFIG)"
    config ZEPHYR_CJSON_MODULE
    	bool
    	default y
    endmenu
    menu "zcbor (C:/Users/Sachin/ncs/v2.0.2/modules/lib/zcbor)"
    osource "$(ZEPHYR_ZCBOR_KCONFIG)"
    config ZEPHYR_ZCBOR_MODULE
    	bool
    	default y
    endmenu
    menu "memfault-firmware-sdk (C:/Users/Sachin/ncs/v2.0.2/modules/lib/memfault-firmware-sdk)"
    osource "C:/Users/Sachin/ncs/v2.0.2/modules/lib/memfault-firmware-sdk/ports/zephyr/Kconfig"
    config ZEPHYR_MEMFAULT_FIRMWARE_SDK_MODULE
    	bool
    	default y
    endmenu
    menu "canopennode (C:/Users/Sachin/ncs/v2.0.2/modules/lib/canopennode)"
    osource "$(ZEPHYR_CANOPENNODE_KCONFIG)"
    config ZEPHYR_CANOPENNODE_MODULE
    	bool
    	default y
    endmenu
    menu "chre (C:/Users/Sachin/ncs/v2.0.2/modules/lib/chre)"
    osource "C:/Users/Sachin/ncs/v2.0.2/modules/lib/chre/platform/zephyr/Kconfig"
    config ZEPHYR_CHRE_MODULE
    	bool
    	default y
    endmenu
    menu "hal_nordic (C:/Users/Sachin/ncs/v2.0.2/modules/hal/nordic)"
    osource "$(ZEPHYR_HAL_NORDIC_KCONFIG)"
    config ZEPHYR_HAL_NORDIC_MODULE
    	bool
    	default y
    endmenu
    menu "liblc3codec (C:/Users/Sachin/ncs/v2.0.2/modules/lib/liblc3codec)"
    osource "$(ZEPHYR_LIBLC3CODEC_KCONFIG)"
    config ZEPHYR_LIBLC3CODEC_MODULE
    	bool
    	default y
    endmenu
    menu "littlefs (C:/Users/Sachin/ncs/v2.0.2/modules/fs/littlefs)"
    osource "$(ZEPHYR_LITTLEFS_KCONFIG)"
    config ZEPHYR_LITTLEFS_MODULE
    	bool
    	default y
    endmenu
    menu "loramac-node (C:/Users/Sachin/ncs/v2.0.2/modules/lib/loramac-node)"
    osource "$(ZEPHYR_LORAMAC_NODE_KCONFIG)"
    config ZEPHYR_LORAMAC_NODE_MODULE
    	bool
    	default y
    endmenu
    menu "lvgl (C:/Users/Sachin/ncs/v2.0.2/modules/lib/gui/lvgl)"
    osource "C:/Users/Sachin/ncs/v2.0.2/modules/lib/gui/lvgl/zephyr/Kconfig"
    config ZEPHYR_LVGL_MODULE
    	bool
    	default y
    endmenu
    menu "lz4 (C:/Users/Sachin/ncs/v2.0.2/modules/lib/lz4)"
    osource "$(ZEPHYR_LZ4_KCONFIG)"
    config ZEPHYR_LZ4_MODULE
    	bool
    	default y
    endmenu
    menu "nanopb (C:/Users/Sachin/ncs/v2.0.2/modules/lib/nanopb)"
    osource "$(ZEPHYR_NANOPB_KCONFIG)"
    config ZEPHYR_NANOPB_MODULE
    	bool
    	default y
    endmenu
    menu "TraceRecorder (C:/Users/Sachin/ncs/v2.0.2/modules/debug/TraceRecorder)"
    osource "C:/Users/Sachin/ncs/v2.0.2/modules/debug/TraceRecorder/kernelports/Zephyr/Kconfig"
    config ZEPHYR_TRACERECORDER_MODULE
    	bool
    	default y
    endmenu
    menu "zscilib (C:/Users/Sachin/ncs/v2.0.2/modules/lib/zscilib)"
    osource "C:/Users/Sachin/ncs/v2.0.2/modules/lib/zscilib/Kconfig.zscilib"
    config ZEPHYR_ZSCILIB_MODULE
    	bool
    	default y
    endmenu
    menu "nrfxlib (C:/Users/Sachin/ncs/v2.0.2/nrfxlib)"
    osource "C:/Users/Sachin/ncs/v2.0.2/nrfxlib/Kconfig.nrfxlib"
    config ZEPHYR_NRFXLIB_MODULE
    	bool
    	default y
    endmenu
    menu "connectedhomeip (C:/Users/Sachin/ncs/v2.0.2/modules/lib/matter)"
    osource "C:/Users/Sachin/ncs/v2.0.2/modules/lib/matter/config/nrfconnect/chip-module/Kconfig"
    config ZEPHYR_CONNECTEDHOMEIP_MODULE
    	bool
    	default y
    endmenu
    

  • This is defined in zephyr\drivers\clock_control\Kconfig.nrf but you might not see this if you have disabled the clock control (CLOCK_CONTROL ) in your proj.conf

  • Hi Susheel,

         I don't seem to reference CLOCK_CONTROL in pro.conf. The same has been attached below We have a release planned. Can you please suggest how we should go about it?

    #
    # Copyright (c) 2018 Nordic Semiconductor
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    # Enable the UART driver
    CONFIG_UART_ASYNC_API=y
    CONFIG_NRFX_UARTE0=y
    CONFIG_SERIAL=y
    
    CONFIG_GPIO=y
    
    # Make sure printk is printing to the UART console
    CONFIG_CONSOLE=y
    CONFIG_UART_CONSOLE=y
    
    CONFIG_HEAP_MEM_POOL_SIZE=2048
    
    CONFIG_BT=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_DEVICE_NAME="Nordic_UART_Service1"
    CONFIG_BT_DEVICE_APPEARANCE=833
    CONFIG_BT_MAX_CONN=1
    CONFIG_BT_MAX_PAIRED=1
    
    # Enable the NUS service
    #CONFIG_BT_NUS=y
    
    # Enable bonding
    CONFIG_BT_SETTINGS=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    CONFIG_NVS=y
    CONFIG_SETTINGS=y
    
    # Enable DK LED and Buttons library
    CONFIG_DK_LIBRARY=y
    
    # This example requires more workqueue stack
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    
    # Config logger
    CONFIG_LOG=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    
    CONFIG_ASSERT=y
    
    CONFIG_BT_BUF_ACL_TX_SIZE=257
    CONFIG_DEBUG_THREAD_INFO=y
    CONFIG_DEBUG_OPTIMIZATIONS=y
    CONFIG_BT_L2CAP_TX_MTU=247
    CONFIG_BT_BUF_ACL_RX_SIZE=251
    CONFIG_BT_NUS_UART_BUFFER_SIZE=200
    

  • I am sorry, I read this wrong. We need to have CONFIG_CLOCK_CONTROL enabled (and by default it is enabled).

    You just need to add this line to your proj.conf

    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y

    and I get this in the final .conf file

Reply Children
No Data
Related