Hi all,
I am working on a project with the ncs v2.6.0 and I am trying to update the nrf5340 by downloading the new firmware update on a FTP.
I am able to connect to the FTP and download the file ("app_update.bin" attached).
When downloading I am writing to the dfu_target using (dfu_target_write). I actually adapted the project AWS from HTTP download to FTP.
When the download ends, I am resetting the target and it reboots on the new partition but I get an error : (mcuboot: Image in the secondary slot is not valid!)
Here's the logs
*** Booting nRF Connect SDK v3.5.99-ncs1 ***
[00:00:00.284,912] <inf> mcuboot: Starting bootloader
[00:00:00.285,919] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.286,132] <inf> mcuboot: Secondary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
[00:00:00.286,132] <inf> mcuboot: Boot source: none
[00:00:00.286,499] <inf> mcuboot: Image index: 0, Swap type: test
[00:00:09.351,135] <err> mcuboot: Image in the secondary slot is not valid!
Though the file I am updating with is ok as I am able to update my device with the same (dfu_application.zip) through bluetooth.
Do you know why I get this error?
I only need to write the file "app_update.bin" to the dfu target right?