This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FINISHED DOWNLOAD OTA but can't reboot

Hello.

I use nrf9160 and download ota with aws.

After my board download successfull and return event FOTA_DOWNLOAD_EVT_FINISHED, I do system(0) to reboot.

But it can't reboot and hang forever till I unplug battery of it.

Please help me with it, thank you

[00:06:31.165,710] <dbg> at_cmd.socket_thread_fn: Writing any pending command
[00:06:31.173,309] <dbg> at_cmd.socket_thread_fn: Listening on socket
[00:06:32.348,236] <inf> download_client: Downloaded 247808/249323 bytes (99%)
[00:06:32.355,987] <inf> STREAM_FLASH: Erasing page at offset 0x000c1000
[00:06:34.625,579] <dbg> at_cmd.socket_thread_fn: at_cmd_rx 19 bytes, %CESQ: 53,2,20,2

%CESQ: 53,2,20,2
[00:06:34.635,803] <dbg> at_cmd.socket_thread_fn: Writing any pending command
[00:06:34.643,432] <dbg> at_cmd.socket_thread_fn: Listening on socket
[00:06:34.650,482] <inf> download_client: Downloaded 249323/249323 bytes (100%)
[00:06:34.669,494] <inf> download_client: Download complete
[00:06:34.680,877] <inf> STREAM_FLASH: Erasing page at offset 0x000f9000
[00:06:34.774,505] <inf> dfu_target_mcuboot: MCUBoot image upgrade scheduled. Reset the device to apply
[00:06:34.784,362] <dbg> net_sock.z_impl_zsock_close: (): close: ctx=0x00000003, fd=1
[00:06:34.792,968] <dbg> tracker_op_mode.fota_dl_handler: FOTA_DOWNLOAD_EVT_FINISHED
*** Booting Zephyr OS build v2.4.0-ncs1 ***
[00:00:00.256,439] <inf> mcuboot: Starting bootloader
[00:00:00.262,634] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x1
[00:00:00.272,583] <inf> mcuboot: Boot source: none
[00:00:00.278,045] <inf> mcuboot: Swap type: test
*** Booting Zephyr OS build v2.4.0-ncs1 ***
[00:00:00.391,601] <inf> mcuboot: Starting bootloader
[00:00:00.397,827] <inf> mcuboot: Primary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
[00:00:00.407,745] <inf> mcuboot: Boot source: primary slot
*** Booting Zephyr OS build v2.4.0-ncs1 ***
[00:00:00.386,779] <inf> mcuboot: Starting bootloader
[00:00:00.393,005] <inf> mcuboot: Primary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
[00:00:00.402,923] <inf> mcuboot: Boot source: primary slot
*** Booting Zephyr OS build v2.4.0-ncs1 ***
[00:00:00.390,838] <inf> mcuboot: Starting bootloader
[00:00:00.397,064] <inf> mcuboot: Primary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
[00:00:00.407,012] <inf> mcuboot: Boot source: primary slot
*** Booting Zephyr OS build v2.4.0-ncs1 ***
[00:00:00.394,104] <inf> mcuboot: Starting bootloader
[00:00:00.400,360] <inf> mcuboot: Primary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
[00:00:00.410,247] <inf> mcuboot: Boot source: primary slot
*** Booting Zephyr OS build v2.4.0-ncs1 ***
[00:00:00.380,798] <inf> mcuboot: Starting bootloader
[00:00:00.387,054] <inf> mcuboot: Primary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
[00:00:00.396,942] <inf> mcuboot: Boot source: primary slot
*** Booting Zephyr OS build v2.4.0-ncs1 ***

Related