PUBLIC下blcommon.c中调用这个函数调用的关系:
// check for flash image. Start erasing if it is.
if ((fIsFlash = OEMIsFlashAddr (pCurDownloadFile->dwRegionStart))
&& !OEMStartEraseFlash (pCurDownloadFile->dwRegionStart, pCurDownloadFile->dwRegionLength))
{
EdbgOutputDebugString ("Invalid Flash Address/Length\r\n");
public\common\oak\inc\
// The bootloader try to erase flash while downloading to speed up
// the download process. It'll call OEMStartEraseFlash if a flash
// image is detected. And continue calling ContinueEraseFlash in the
// course of image download. It'll call OEMFinishEraseFlash when
// the image download is complete. And OEMWriteFlash aferward.
//
// If speed is not a concern, OEM can stub StartErase, ContinueErase,
// and FinishErase function, then performs all the operations in WriteFlash.