AnsweredAssumed Answered

Hello All, How to Rewrite the internal EEPROM of MKE02Z64VLH2, I am able to write and read but cannot erase and write again please help me,

Question asked by Manoj Khatri on Jul 31, 2017
Latest reply on Aug 3, 2017 by Manoj Khatri

bool Eep_F_Erase_Flash_b(LDD_TDeviceData *MyFLASH_Ptr, LDD_FLASH_TAddress Address, LDD_FLASH_TDataSize Size)
{   
     LDD_TError Error;
     // *Mem_v_OpStatus_u8 = FALSE;
      Error = EEPROM_RW_Erase(MyFLASH_Ptr, Address, Size);
      while (!DataWrittenFlg)
      {                                                   /* Wait until the data are written */
           EEPROM_RW_Main(MyFLASH_Ptr);                                                 /* Run the main method */
      }
      DataWrittenFlg = FALSE;
      if (EEPROM_RW_GetOperationStatus(MyFLASH_Ptr) == LDD_FLASH_FAILED)
      {           /* Check if the operation has successfully ended */
           return FALSE;    /* Error state solution */
      }
      else
      {
             return TRUE;
      }
 }

Attachments

Outcomes