PSoC64 Secure Boot Utilities Middleware Library 1.0
Functions

General Description

Functions

bool cy_p64_is_image_confirmed (uint32_t image_start, uint32_t image_size)
 Checks the Image OK flag in the slot trailer. More...
 
cy_p64_error_codes_t cy_p64_confirm_image (uint32_t image_start, uint32_t image_size)
 Writes the Image OK flag to the slot trailer, so CypressBootloader will not revert the new image. More...
 

Function Documentation

◆ cy_p64_is_image_confirmed()

bool cy_p64_is_image_confirmed ( uint32_t  image_start,
uint32_t  image_size 
)

Checks the Image OK flag in the slot trailer.

Parameters
[in]image_startThe start address of the image.
[in]image_sizeThe size of the image.
Returns
"true" if the Image OK flag is set or "false" if not set.

◆ cy_p64_confirm_image()

cy_p64_error_codes_t cy_p64_confirm_image ( uint32_t  image_start,
uint32_t  image_size 
)

Writes the Image OK flag to the slot trailer, so CypressBootloader will not revert the new image.

Write to flash operation is skipped if the Image OK flag is already set in the trailer.

Parameters
[in]image_startThe start address of the image.
[in]image_sizeThe size of the image.
Returns
CY_P64_SUCCESS for success or error code.