dfu: mcuboot_shell: Add command to enter serial recovery

Adds a command which can be used to enter mcuboot's serial recovery
mode when the retention subsystem is enabled.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2023-02-23 16:01:43 +00:00 committed by Carles Cufí
commit 5e8b067364
2 changed files with 35 additions and 1 deletions

View file

@ -19,7 +19,7 @@ int bootmode_check(uint8_t boot_mode)
rc = retention_is_valid(boot_mode_dev);
if (rc == 1) {
if (rc == 1 || rc == -ENOTSUP) {
uint8_t stored_mode;
rc = retention_read(boot_mode_dev, 0, &stored_mode, sizeof(stored_mode));