DCF record flash code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DCF record flash code

1,411 次查看
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 

标记 (2)
0 项奖励
回复
1 回复

1,312 次查看
yuriy_serdyuk
Contributor III

I solved, i need unlock utest memory

C55FMC.LOCK0.TSLOCK=0;

0 项奖励
回复