DCF record flash code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DCF record flash code

1,144 Views
yuriy_serdyuk
Contributor III

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;

pastedImage_3.png

But it was not success.  Can you help me?

Thank you 

Tags (2)
0 Kudos
Reply
1 Reply

1,045 Views
yuriy_serdyuk
Contributor III

I solved, i need unlock utest memory

C55FMC.LOCK0.TSLOCK=0;

0 Kudos
Reply