Using UART DFU on NRF52833

Hello,

I am using NRF52833 chip and V2.3.0 SDKs,

I'm having a problem similar to Update code via UART instead of FOTA nRF9160.

According to the link, what I need to do is the following:

  1. Place app_update.bin in the secondary slot of the nRF52833
  2. Reset the nRF52833
    1. The mcuboot will then check the secondary slot and if it finds a valid image, it will swap it with the image in the primary slot and boot the new image
  3. Mark the image as "okay" to prevent rollback on next reset
    1. This can be done from the image itself using boot_write_img_confirmed()

Now i have sent app_update.bin one block at the time over UART from the ESP32 to the nRF52833 and put it in the secondary slot, but when I reboot with sys_reboot(), there is no image swapping and booting.

Unfortunately the above post doesn't go any deeper in the discussion, I have no idea how to implement step 2.

According to the post: Example For Using UART DFU on NRF52832 on both sides of communications, this could be related to MCUboot, so I added CONFIG_MCUBOOT=y to prj.conf, but it didn't work as I thought it would.Is it possible that I didn't enable MCUboot?

Thanks for your help.

Regards,

Joe

Related