
Hello,
Please try adding you folder to e.g. D:\ncs\john or D:\ncs\projects\john.
Kind regards,
Øyvind
Hi:
I changed D:\ncs\john to D:\nrf91, and it succeeded.
But application_update example build failed.



Hello, thanks for providing this information. I also see this issue with my freshly installed NCS v2.1.0.



Will discuss internally and get back to you.
Kind regards,
Øyvind
To clarify, it is due to the missing nrf\samples\nrf9160\http_update\common. Will find the workaround and get back to you.
-Øyvind
Ok, so the current workaround for you is to edit the CMakeLists.txt in d:\nrf91\application_update to e.g.
#
# Copyright (c) 2019 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(application_update)
# NORDIC SDK APP START
target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE D:/NCS/v2.0.2/nrf/samples/nrf9160/http_update/common/src/update.c)
target_include_directories(app PRIVATE D:/NCS/v2.0.2/nrf/samples/nrf9160/http_update/common/include)
# NORDIC SDK APP END
Plase make sure the path is correct.and then do a pristine build.
Let me know how that works for you.
Kind regards,
Øyvind
Ok, so the current workaround for you is to edit the CMakeLists.txt in d:\nrf91\application_update to e.g.
#
# Copyright (c) 2019 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(application_update)
# NORDIC SDK APP START
target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE D:/NCS/v2.0.2/nrf/samples/nrf9160/http_update/common/src/update.c)
target_include_directories(app PRIVATE D:/NCS/v2.0.2/nrf/samples/nrf9160/http_update/common/include)
# NORDIC SDK APP END
Plase make sure the path is correct.and then do a pristine build.
Let me know how that works for you.
Kind regards,
Øyvind
Hi Øyvind:
Thank you very much for your help.It succeed.
I have another question. Is this NRF91 OTA? And how to use it OTA?
john.liu said:Thank you very much for your help.It succeed.
Happy to help!
john.liu said:I have another question. Is this NRF91 OTA? And how to use it OTA?
Could you please register a new ticket with that question, as it is out of scope for the original question.
Thanks!
Kind regards,
Øyvind