Can I use SVC function to copy bootloader image during FOTA?

Can I use SVC function in my application code to copy bootloader image into flash instead of using mbr commands? If this is not possible, what are the other alternative options to update the bootloader?

This is required since we have a power constraint during FOTA and flash write/erase APIs in MBR fuñctions cannot be modified to allow this.

Parents
  • Hi,

    What is possible depend on SDK version. What SDK and which version of that SDK have you built your project on?

    Modifying the MBR is, as you write, not possible.

    Doing the flash swap operations from the application could be possible, although very risky, as long as you do not need to use that mechanism for replacing the application itself. In any case you do get a time window where power loss bricks the device.

    Can you elaborate on the power constraints? The feasibility of doing the flahs operations from the app depend on this (in addition to SDK version etc.) There might be other, better, workarounds.

    Regards,
    Terje

Reply
  • Hi,

    What is possible depend on SDK version. What SDK and which version of that SDK have you built your project on?

    Modifying the MBR is, as you write, not possible.

    Doing the flash swap operations from the application could be possible, although very risky, as long as you do not need to use that mechanism for replacing the application itself. In any case you do get a time window where power loss bricks the device.

    Can you elaborate on the power constraints? The feasibility of doing the flahs operations from the app depend on this (in addition to SDK version etc.) There might be other, better, workarounds.

    Regards,
    Terje

Children
No Data
Related