Hi:
I want to use hello_world example OTA nrf9160.
Reference application_update example.
How to use application_update?And How to modify hello_world into a file that can be used for OTA?
NCS:V2.1.2
Hi:
I want to use hello_world example OTA nrf9160.
Reference application_update example.
How to use application_update?And How to modify hello_world into a file that can be used for OTA?
NCS:V2.1.2
Hello,
I'm not sure I understand your issue. Do you want to program the nRF9160 with hello_world sample using the application_update sample?
Please read the documentation and provide more details to your inquiry.
Kind regards,
Øyvind
Hi:
When I run the application_update sample, it seems to enter the bootloader without running the application.
I'm not able to reproduce this issue in v2.1.2 on my side.
In order to use the application_update sample to download a version of the hello_world from your host server of choice, you will need to add CONFIG_BOOTLOADER_MCUBOOT=y to the prj.conf of hello_world.
This will generate important OTA files such as the update image app_update.bin (build\zephyr\app_update.bin). This file can then be uploaded to e.g. AWS S3 bucket as described in the documentation of application_update.
Kind regards,
Øyvind
Hi:
1,mfw_nrf9160_1.3.2.zip
2,
And CmakeLists.txt Config:
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 C:/ncs/v2.1.2/nrf/samples/nrf9160/http_update/common/src/update.c) target_include_directories(app PRIVATE C:/ncs/v2.1.2/nrf/samples/nrf9160/http_update/common/include) # NORDIC SDK APP END
I don't know if it matters.
And CmakeLists.txt Config:
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 C:/ncs/v2.1.2/nrf/samples/nrf9160/http_update/common/src/update.c) target_include_directories(app PRIVATE C:/ncs/v2.1.2/nrf/samples/nrf9160/http_update/common/include) # NORDIC SDK APP END
I don't know if it matters.
Thanks for sharing! Can you test with other samples as well, just to verify that they are working as intended?
Also, when building the project, do you get any warnings or similar?
Hi:
Test hello_world example.It is OK.
Build application_update eample.
Can you please try with another sample from the nrf samples that are designed for nRF9160 e.g. Asset Tracker v2? This to verify the functionality.
Thanks
Hi:
use asset_tracker_v2.But build error.
Could you please provide full log output from the build? Please copy and paste to a txt file and upload here.
If you are not able to build any other sample, we need to find the root cause.