.

meiFlashMemoryFromFileImage

Declaration

 
long meiFlashMemoryFromFileImage(MEIFlash          flash,
                                 const char        *fileImage,
MEIFlashFileType *fileType);
 

Required Header: stdmei.h

Description

meiFlashMemoryFromFileImage is used to erase and program controller flash memory. The values to be programmed are stored in the byte array fileImage. The parameter fileType is used by this method to determine the flash sector and size of the flash memory region to be programmed.

Supported values for fileType are:

  • MEIFlashFileTypeCode, Code
  • MEIFlashFileTypeDataInt, Internal Data
  • MEIFlashFileTypeDataExt, External Data
  • MEIFlashFileTypeSynqNet, SynqNet
  • MEIFlashFileTypeCodeAndData, Code, Internal and External Data.
  • MEIFlashFileTypeFPGA0, FPGA (Rincon)
  • MEIFlashFileTypeALL, Code, Internal Data, External Data, and FPGA.

This method exists primarily for compatibility with older software. For new designs, it is recommeded that you use the the meiFlashMemoryFromFileType() method instead.

 
flash a handle to a flash object
*fileImage a pointer to data in memory to be copied to flash.
*fileType where the fileImage will be copied to in flash.
   
 
Return Values
MPIMessageOK  
MEIFlashMessageFLASH_INVALID  
MPIMessageNO_MEMORY  
MPIMessageTIMEOUT  
MEIFlashMessageFLASH_WRITE_ERROR  

See Also

meiFlashMemoryFromFileType

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering