MCUBOOT

For our project we switched over to using DIRECT_XIP mone primarily because of the faster boot time but it automatically enables downgrade protection. For our project we need the ability to downgrade. So is there anyway to have DIRECT_XIP while still allowing for the ability to downgrade.

Parents Reply
  • Hi,

    I would not recomend this approach, but theoretically you could modfiy the version and security counter in some cases in a semi-safe way by writing to the image trailer without erasing. That would only let you flip bits from 1 to 0.

    But why do you want to do this? If. you really need to downgrade while using downgrade protection, a possibility could be to build another variant of the old firmware with a higher version number. So that it is a higher version seen from the bootloader, but in fact is in other ways identical with the older version.

Children
No Data
Related