how to cancel the limit of version in ncs sdk when ota?

I am developing my product using the desktop app in the NCS SDK. I found that during OTA, it can only upgrade from a lower version to a higher version. This means that when my users upgrade to a problematic version, they can't roll back, which is quite troublesome. Is there any way to remove this restriction?

Parents
  • Hi,

    Which SDK version and Nordic chip are you using here?

    You could disable the software downgrade prevention by disabling CONFIG_MCUBOOT_DOWNGRADE_PREVENTION=n and SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY=n (for SDK version>2.7.0 and using Sysbuild), See the documentation here.

    If you are optimizing for production, you might want to leave downgrade prevention enabled for security. Also, please see that removing the version-checking mechanism comes with a security trade-off since downgrades might introduce vulnerabilities that newer versions have fixed.

    Regards,

    Priyanka

Reply
  • Hi,

    Which SDK version and Nordic chip are you using here?

    You could disable the software downgrade prevention by disabling CONFIG_MCUBOOT_DOWNGRADE_PREVENTION=n and SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY=n (for SDK version>2.7.0 and using Sysbuild), See the documentation here.

    If you are optimizing for production, you might want to leave downgrade prevention enabled for security. Also, please see that removing the version-checking mechanism comes with a security trade-off since downgrades might introduce vulnerabilities that newer versions have fixed.

    Regards,

    Priyanka

Children
Related