flash_unlock

Execute unlock in the internal flash.

int32_t flash_unlock(
    struct flash_descriptor * flash,
    const uint32_t dst_addr,
    const uint32_t page_nums
)

Parameters

flash

Type: struct flash_descriptor Struct *

Pointer to the HAL FLASH instance.

dst_addr

Type: const uint32_t

Destination bytes address aligned with page start to be unlocked

page_nums

Type: const uint32_t

Number of pages to be unlocked

Returns

Type: int32_t

Real unlocked numbers of pages.