Tool/software: Code Composer Studio
Hi,
Working with example simple_peripheral_oad_offchip from SDK v3.10.00.15 and CCS v9.0.1
I use a custom board with a 8Mbytes flash external memory and i need to copy a factory image into this external flash memory.
I have check function in bim_main.c from bim_oad_offchip_cc2640r2lp_app if this function already exist. I fund the function "isLastMetaData" with this brief:
/******************************************************************************* * @fn isLastMetaData * * @brief Copies the internal application + stack image to the external flash * to serve as the permanent resident image in external flash. * * @param flashPageNum - Flash page number to start search for external flash * metadata * * @return flashPageNum - Valid flash page number if metadata is found. * IMG_HDR_FOUND - if metadat starting form specified flash page not found * EMPTY_METADATA - if it is empty flashif metadata not found. */
It seems to me that the brief of this function does not correspond to its true utility. This function is used to search image metadata in external flash.
My question is: Is there already a function that copies a factory image from the internal flash memory to the external flash memory ?
Best regards