Skip to content

Commit afea614

Browse files
nordicjmeivindj-nordic
authored andcommitted
storage: flash_map: Add second slot
Adds the second slot which will show version information on the firmware loader image Signed-off-by: Jamie McCrae <[email protected]>
1 parent 07fdbf3 commit afea614

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

subsys/storage/flash_map/flash_map_mcumgr.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ const struct flash_area default_flash_map[] = {
1515
.fa_size = FIXED_PARTITION_SIZE(slot0_partition),
1616
.fa_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_flash_controller)),
1717
},
18+
{
19+
.fa_id = 2,
20+
.fa_off = FIXED_PARTITION_OFFSET(slot1_partition),
21+
.fa_size = FIXED_PARTITION_SIZE(slot1_partition),
22+
.fa_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_flash_controller)),
23+
},
1824
};
1925

2026
const int flash_map_entries = ARRAY_SIZE(default_flash_map);

0 commit comments

Comments
 (0)