AnsweredAssumed Answered

How can I programe E2PROM using word mode?

Question asked by chris.cgha on May 28, 2012
Latest reply on Jun 2, 2012 by chris.cgha
I tried to use the firmware lib to program it ,but failed.

FLASH_Unlock(FLASH_MEMTYPE_DATA);
  
  for(i = 0; i < DataLeng; i=i+4)
  {
   FLASH_ProgramWord(StartAddr + i,(*(u32*)pBuf));
   pBuf= pBuf+4;;
   FLASH_WaitForLastOperation(FLASH_MEMTYPE_DATA);
  }
FLASH_Lock(FLASH_MEMTYPE_DATA);

But when I use program_byte, it sucess. I just want to save time because I need to programe 23 byte at sequence address one time. Thanks!

ChrisChen

Outcomes