nRF52832 crystal

Hello,

How can I check which crystal oscillator is configured for the nRF52832 DK from the firmware side? Is there a specific configuration file or parameter that defines the crystal oscillator settings in the SDK or project files?

Thank you for your assistance.

Parents
  • Hello,

    The easiest is to check the .config file(s) in the build folder. You will likely find one of the following it set to "y":
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL

    Be aware that if you have included other images in your project, then you should also check those have the same clock source.

    Some more information about clock options:

    32MHz

    The external 32MHz crystal is mandatory, so there is no configurations options, but you need to make sure to choose one that meet the electrical specifications:

    https://docs.nordicsemi.com/bundle/ps_nrf52832/page/clock.html#d910e8036 

    32kHz

    For the 32kHz, you can choose to either use the internal one, or to use an external one, if you want an external one you need to make sure to choose one that meet the electrical specifications:

    https://docs.nordicsemi.com/bundle/ps_nrf52832/page/clock.html#d910e9094 

    If you are using internal then you need to set:
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
    (which will also set CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y)

    If you are using the external then you need to set the following and the worst case tolerance of the XTAL:
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y

    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_150PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_100PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_75PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_30PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_20PPM is not set

    Hope that helps,
    Kenneth

Reply
  • Hello,

    The easiest is to check the .config file(s) in the build folder. You will likely find one of the following it set to "y":
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL

    Be aware that if you have included other images in your project, then you should also check those have the same clock source.

    Some more information about clock options:

    32MHz

    The external 32MHz crystal is mandatory, so there is no configurations options, but you need to make sure to choose one that meet the electrical specifications:

    https://docs.nordicsemi.com/bundle/ps_nrf52832/page/clock.html#d910e8036 

    32kHz

    For the 32kHz, you can choose to either use the internal one, or to use an external one, if you want an external one you need to make sure to choose one that meet the electrical specifications:

    https://docs.nordicsemi.com/bundle/ps_nrf52832/page/clock.html#d910e9094 

    If you are using internal then you need to set:
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
    (which will also set CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y)

    If you are using the external then you need to set the following and the worst case tolerance of the XTAL:
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y

    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_150PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_100PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_75PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_30PPM is not set
    # CONFIG_CLOCK_CONTROL_NRF_K32SRC_20PPM is not set

    Hope that helps,
    Kenneth

Children
No Data
Related