DCF record flash code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DCF record flash code

1,148件の閲覧回数
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,049件の閲覧回数
yuriy_serdyuk
Contributor III

I solved, i need unlock utest memory

C55FMC.LOCK0.TSLOCK=0;

0 件の賞賛
返信