nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs
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

Where can I find examples of OTA upgrades using external Flash in NCS 1.9.1?

Hi,

As shown in the subject, I am developing a product which needs to support extern Flash-based BT OTA-upgrade. So where can I find examples of OTA-upgrade using external Flash in NCS 1.9.1?

Platform: Windows 10

NCS version: 1.9.1

Boards: nrf52840dk_nrf52840

IDE: SEGGER Embedded StudioSES

Thanks

  • Hi Joyop,

    Have you checked the samples, specifically smp_svr?
    You should be able to do what you want by checking also the bt fragments when you setup your build sequence.


    Also a lot of good resources from Hellesvik under (all credits go to Hellesvik):

    github.com/.../bootloader_samples

  • Hi DorianN,

    Thanks for your reply.

    Yes I have checked the smp_svr, it works. Just looking for a sample which supports extern OTA.

    The link you provided seems to be helpful. I will check it out.

  • Hi DorianN,

    Thanks to your advice, now I have made a sample of external flash OTA based on smp_svr.

    But there is a new question. How can I know that I am really using external flash? Cause I didn't see any differences. 

  • Hi,

    If you have configured the MCUboot image slots correctly, the update should be stored in the external flash. 

    If you want to verify this, you could check if the firmware update is stored in the external flash by reading out the content before and after OTA, and compare it to see that the firmware update was stored. You could also try to update a firmware that takes up more than 50 % of the internal flash, twice. Since the BLE stack is integrated with the firmware, you need to perform a dual slot update, which would not be possible if the firmware is larger than 50% of the internal flash. This will only work when the second image slot is placed in external flash.

    Best regards,
    Jørgen

Related