This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52811: SDKv-15.3, Remove firmware version checking support from DFU

Hello Nordic Team

I am working  on SDK-v15.3. I have a requirement to update the DFU firmware in lower version too but this SDK version doesn't supporting to update lower version of firmware.

How we can skip version checking from DFU update so that it can allow to update lower version of firmware too.

Any help will be appreciated.

Thanks

Raj

  • Hi Raj, 

    you can disable the version check by setting NRF_DFU_APP_DOWNGRADE_PREVENTION to 0 in the bootloader's sdk_config.h file, see below

    // <q> NRF_DFU_APP_DOWNGRADE_PREVENTION  - Check the firmware version and SoftDevice requirements of application (and SoftDevice) updates.
     
    
    // <i> Whether to check the incoming version against the version of the existing app and/or
    // <i> the incoming SoftDevice requirements against the existing SoftDevice.
    // <i> This applies to application updates, and possibly to SoftDevice updates.
    // <i> Disabling this causes the checks to always ignore the incoming firmware version and
    // <i> to ignore the SoftDevice requirements if the first requirement is 0.
    // <i> This does not apply the bootloader updates. If the bootloader depends on the SoftDevice
    // <i> e.g. for BLE transport, this does not apply to SoftDevice updates.
    // <i> See @ref lib_bootloader_dfu_validation for more information.
    // <i> When signed updates are required, version checking should always be enabled.
    
    #ifndef NRF_DFU_APP_DOWNGRADE_PREVENTION
    #define NRF_DFU_APP_DOWNGRADE_PREVENTION 1
    #endif

    Best regards

    Bjørn

Related