Read MCUboot version from main app

I am using ncs2.7 on the nrf9160 with MCU boot.

MCU boot is configured and is able to update the main app with no issue.

Is there a simple way for the main app to read the MCU boot version?  We will not be updating MCU boot, I just need the version reported

Or if we aren't updating it, it is part of the ncs release and that should just be referenced?

Parents
  • Hello,

    We use the "Firmware information" library to embed version information into the bootloader image, but this is usually only done when the bootloader is upgradable (i.e., when MCUBoot is used as the second stage bootloader), and the version is then being read by the first stage bootloader, not the application. Accessing the firmware information structure from the application running in the Non-secure Processing Environment may be more involved. Since the bootloader is immutable, I think it may make sense to always use the same bootloader hex when programming the devices in production.

Reply
  • Hello,

    We use the "Firmware information" library to embed version information into the bootloader image, but this is usually only done when the bootloader is upgradable (i.e., when MCUBoot is used as the second stage bootloader), and the version is then being read by the first stage bootloader, not the application. Accessing the firmware information structure from the application running in the Non-secure Processing Environment may be more involved. Since the bootloader is immutable, I think it may make sense to always use the same bootloader hex when programming the devices in production.

Children
No Data
Related