-
Notifications
You must be signed in to change notification settings - Fork 865
Closed
Labels
Description
This sample needs to be upgraded to include usage of the boot image control library. It would be so much more helpful if it would demonstrate how to use the functions:
` int boot_read_bank_header(uint8_t area_id, struct mcuboot_img_header *header, size_t header_size);
bool boot_is_img_confirmed(void);
int boot_write_img_confirmed(void);
int boot_write_img_confirmed_multi(int image_index);
int mcuboot_swap_type(void);
int mcuboot_swap_type_multi(int image_index);
int boot_request_upgrade(int permanent);
int boot_request_upgrade_multi(int image_index, int permanent);
int boot_erase_img_bank(uint8_t area_id);
ssize_t boot_get_area_trailer_status_offset(uint8_t area_id);
ssize_t boot_get_trailer_status_offset(size_t area_size);`
Exactly what is expected and how to do it is very confusing and an expanded sample program would be VERY helpful.