Support for Direct-XIP without revert mode #117
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for new MCUboot mode: Direct XIP without revert.
The option with revert was already supported in 1.7.2.
The difference between with and without revert is, that without revert there's no Test or Confirm command.
Also, like in case of Direct XIP with revert the image comes in 2 binaries, compiled for primary and secondary slot, but this time no Test or Confirm. Just Upload and Reset.
More about different modes: https://docs.mcuboot.com/design.html#image-slots
A new Mode was added:
NONE
to indicate that no Test and no Confirm is sent.If the target supports Bootloader Information command, the mode will be selected automatically even if a different one is selected.
Unfortunately, the nRF Connect Device Manager always asks for the mode after clicking START. This is because the device may not be connected at that point, so the app doesn't know the bootloader mode.
Direct XIP with and without Revert are supported from NCS 2.5 onwards.