Hi,
I have tested FOTA code in nRF52840 DK and it works perfect but i have custom board build with nrf52840 when i implement the code it doesn't get start
custom board not have 32.768khz crystal

Hi,
I have tested FOTA code in nRF52840 DK and it works perfect but i have custom board build with nrf52840 when i implement the code it doesn't get start
custom board not have 32.768khz crystal

custom board not have 32.768khz crystal
Have you tried setting the LFCLK source to RC?
https://github.com/nrfconnect/sdk-zephyr/blob/master/drivers/clock_control/Kconfig.nrf#L33
Kind regards,
Håkon
Yes i have done it but no response
prj.confg
# # Copyright (c) 2018 Nordic Semiconductor # # SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic # CONFIG_NCS_SAMPLES_DEFAULTS=y CONFIG_BT=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DEVICE_NAME="Nordic_Blinky" # Enable the LBS service CONFIG_BT_LBS=y CONFIG_BT_LBS_POLL_BUTTON=y CONFIG_DK_LIBRARY=y # Added for FOTA CONFIG_BOOTLOADER_MCUBOOT=y CONFIG_MCUMGR=y CONFIG_MCUMGR_CMD_OS_MGMT=y CONFIG_MCUMGR_CMD_IMG_MGMT=y CONFIG_MCUMGR_SMP_BT=y CONFIG_IMG_ERASE_PROGRESSIVELY=y CONFIG_DEBUG_OPTIMIZATIONS=y CONFIG_MCUMGR_SMP_BT_AUTHEN=n CONFIG_PRINTK=y CONFIG_UART_CONSOLE=y CONFIG_BT_L2CAP_TX_MTU=252 CONFIG_BT_L2CAP_RX_MTU=252 CONFIG_BT_RX_BUF_LEN=260 CONFIG_BT_CTLR_TX_BUFFER_SIZE=251 CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 # Clock configuration CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y CONFIG_BT_SMP=y CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y
I have confg
# Clock configuration
CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y
in prj.conf
and also in child_mage\mcuboot.conf
config_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y
but when i check configure nrf connect
for menuconfig

but when i see mcuboot config

how to change it in .config file
and when i change this in configure menu
i got this error

Hi Håkon,
i have
disable the two stage low frequency clock
changed to synthesized from HFCLK
it works

but i need to config in .conf
how to do it
the mcuboot.conf changes doesn't work can you help for it
It seems that mcuboot tries to use temp sensor for calibration intervals. We will need to disable this specifically for mcuboot. Could you try this in mcuboot.conf?
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_MAX_SKIP=0 CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_TEMP_DIFF=0
Kind regards,
Håkon
I have used HFCLK in main menu so i need to use same in mcuboot.conf
config_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_MAX_SKIP=0
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_TEMP_DIFF=0
I have used HFCLK in main menu so i need to use same in mcuboot.conf
config_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_MAX_SKIP=0
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_TEMP_DIFF=0
For above also no config changes still the clock doesn't changes

can you once again check my steps
1. My project dfu_lbs created . inside dfu_lbs created folder called child_image
2. in prj.conf added
# Clock configuration
CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y
3..Inside child_image created mcuboot.conf and pasted
CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_MAX_SKIP=0
CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_TEMP_DIFF=0
opened the project and cross verified with
project -> configure nrf connect sdk project
a. menuconfig

b. mcuboot_menuconfig

clock doesn't changed in mcuboot.
I am using SDK v1.4.2 does any thing need to change
Hi Håkon,
Anything i have missed here
Hi,
Sunil vignesh said:I am using SDK v1.4.2 does any thing need to change
This ncs version does not automatically load child_image configuration, so you need to add this just below the cmake_minimum_required() line in CMakeLists.txt:
list(APPEND mcuboot_OVERLAY_CONFIG
"${CMAKE_CURRENT_SOURCE_DIR}/child_image/mcuboot.conf"
)
Kind regards,
Håkon
changed CMAkelists.txt like this
#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(NONE)
# NORDIC SDK APP START
target_sources(app PRIVATE
src/main.c
)
list(APPEND mcuboot_OVERLAY_CONFIG
"${CMAKE_CURRENT_SOURCE_DIR}/child_image/mcuboot.conf"
)
# NORDIC SDK APP END
zephyr_library_include_directories(.)
but no change
Please add it just below the cmake_minimum_required() line.