2.4.3.3 BL_FlashCopy()

bl_mem_result_t BL_FlashCopy (flash_address_t srcAddress, flash_address_t destAddress, size_t length)

Helper function to enable the direct copying of one Flash area to another.

Parameters:
in srcAddress

- Starting address of the source data for the Flash copy operation

in destAddress

- Starting address of the destination for the Flash copy operation

in length

- Total number of bytes to be copied to the destination address

Returns:

BL_MEM_PASS - Flash write succeeded  

BL_MEM_FAIL - Flash write failed  

BL_MEM_INVALID_ARG - An invalid argument is passed to the function