File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1616
1717#elif (MCUBOOT_IMAGE_NUMBER == 2 )
1818
19+ #ifdef CONFIG_SECURE_BOOT
20+
1921extern uint32_t _image_1_primary_slot_id [];
2022
2123#define FLASH_AREA_IMAGE_PRIMARY (x ) \
@@ -31,6 +33,24 @@ extern uint32_t _image_1_primary_slot_id[];
3133 (x == 1) ? \
3234 PM_MCUBOOT_SECONDARY_ID: \
3335 255 )
36+ #else
37+
38+ #define FLASH_AREA_IMAGE_PRIMARY (x ) \
39+ ((x == 0) ? \
40+ PM_MCUBOOT_PRIMARY_ID : \
41+ (x == 1) ? \
42+ PM_MCUBOOT_PRIMARY_1_ID : \
43+ 255 )
44+
45+ #define FLASH_AREA_IMAGE_SECONDARY (x ) \
46+ ((x == 0) ? \
47+ PM_MCUBOOT_SECONDARY_ID: \
48+ (x == 1) ? \
49+ PM_MCUBOOT_SECONDARY_1_ID: \
50+ 255 )
51+
52+ #endif /* CONFIG_SECURE_BOOT */
53+
3454#endif
3555#define FLASH_AREA_IMAGE_SCRATCH PM_MCUBOOT_SCRATCH_ID
3656
Original file line number Diff line number Diff line change @@ -49,3 +49,14 @@ mcuboot_pad:
4949# ifdef CONFIG_FPROTECT
5050 align : {start: CONFIG_FPROTECT_BLOCK_SIZE}
5151# endif
52+
53+ # if (CONFIG_NRF53_MULTI_IMAGE_UPDATE)
54+ mcuboot_primary_1 :
55+ region : ram_flash
56+ size : CONFIG_NRF53_RAM_FLASH_SIZE
57+
58+ mcuboot_secondary_1 :
59+ region : external_flash
60+ size : CONFIG_NRF53_RAM_FLASH_SIZE
61+
62+ # endif /* CONFIG_NRF53_MULTI_IMAGE_UPDATE */
You can’t perform that action at this time.
0 commit comments