This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 DK mcuboot custom app based on the UDP example

Shalom!

 I have a nRF9160 DK board that I am using before our custom hardware prototype is ready.  My application is based on the UDP example code skeleton along with code pulled in from other examples. I can run the application in the SES IDE debugger and it connects to our server. I wanted to get application (priority) and modem (delta) OTA working on the SDK. I tried adding "CONFIG_BOOTLOADER_MCUBOOT=y" but when running the application by way of the debugger I get an immediate hard fault. I tried adding defines from the application_update.

I tried compiling the http_update application_update example but I get "opening dependency file modules\mcuboot\boot\bootutil\zephyr\CMakeFiles\..__bootloader__mcuboot__boot__bootutil__zephyr.dir\C_\ncs\v1.5.1\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c.obj.d: No such file or directory". There is no file in the path. I installed the Connect SDK in its default path. The mcuboot (under tests) and the dfu_target-mcuboot both compile.

How can I compile my application with the bootloader in order to test OTA on the nRF9160 DK?

Without the CONFIG_BOOTLOADER_MCUBOOT=y define after resetting the SDk, my code does not run.

How can at least get the code to run at startup?

Related