I used SDK v2.6.2 with the nRF7002 DK kit.i used mcu boot secondary with external flash.
I was able to perform OTA using the nRF Connect app, but after resetting the DK kit, it reverts to the older firmware. How can I resolve this issue?
I used SDK v2.6.2 with the nRF7002 DK kit.i used mcu boot secondary with external flash.
I was able to perform OTA using the nRF Connect app, but after resetting the DK kit, it reverts to the older firmware. How can I resolve this issue?
Hi,
Are you calling boot_write_img_confirmed() in your new application?
https://github.com/nrfconnect/sdk-nrf/blob/v2.9.0/samples/cellular/smp_svr/src/main.c#L32
Kind regards,
Håkon
No, I didn't call boot_write_img_confirmed()
.
Is there any specific reason to call boot_write_img_confirmed()
?
Hi,
This is for the new application to be able to run a self-test before confirming that the OTA image is indeed working as it should. If this is not run, it will revert to the old image.
Kind regards,
Håkon
Hi,
I add boot_write_img_confirmed() and problem is solve,
thanks for your support.
Glad to hear that this helped. Hope you have a wonderful day!
Kind regards,
Håkon