AnsweredAssumed Answered

DCF record flash code

Question asked by Yuriy Serdyuk on Jul 9, 2019
Latest reply on Jul 9, 2019 by Yuriy Serdyuk

Hi All,

 

I try to flash DCF record with code from example

 

 

C55FMC.LOCK0.R &= 0xFFFFFDFF;

/* Program one page in the mid block */
C55FMC.MCR.B.PGM = 1;
*(unsigned int*)0x400638 = 0x0; 
*(unsigned int*)(0x400638+4) = 0x0;
C55FMC.MCR.B.EHV = 1;
while(C55FMC.MCR.B.DONE == 0);
C55FMC.MCR.B.EHV = 0;
C55FMC.MCR.B.PGM = 0;

 

 

But it was not success.  Can you help me?

 

Thank you 

Outcomes