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

retrieve hw, sw, bl version information and sd device Id from attached board

The nrfutil documentation/application is used to create a .zip file to dfu update.  This package may contain a combination of application/bootloader/soft device along with versions (or ID) for each.  Since the decision to update may be based upon the current installed version/ID, is it possible to retrieve these version/IDs to determine if an update is necessary?  For instance, I may want to update to software version 10.  How might I retrieve current version for determining dependencies and ramifications of updating?

Parents
  • Hi,

    You can check the bootloader settings page (nrf_dfu_settings_t) in order to see the current versions on a device. The DFU protocol does not have support for reading this over the DFU transport layer out of the box though, so if you want that you have to implement it yourself. Note that the bootloader settings do not contain the SoftDevice version. That can be obtained by checking SD_VERSION_GET(). You can see how it is done in nrf_dru_req_handler.c.

    If you need to see the versions for a dfu .zip file, you can use "nrfutil settings display <file>". 

Reply
  • Hi,

    You can check the bootloader settings page (nrf_dfu_settings_t) in order to see the current versions on a device. The DFU protocol does not have support for reading this over the DFU transport layer out of the box though, so if you want that you have to implement it yourself. Note that the bootloader settings do not contain the SoftDevice version. That can be obtained by checking SD_VERSION_GET(). You can see how it is done in nrf_dru_req_handler.c.

    If you need to see the versions for a dfu .zip file, you can use "nrfutil settings display <file>". 

Children
Related