Skip to content

Sample program mcuboot/samples/zephyr/hello-world/src/main.c is incomplete. #2118

@Rob-Grady

Description

@Rob-Grady

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions