I have a cmm file which adds a DCF record. I have used this for programming the record.
Eg:
data.set 0x00400300 %QUAD 0x05AA55AF00000000 ;DCF Start Record
data.set 0x00400310 %QUAD 0xD3FEA98B00080008 ;STCU SKU Key 1
Using debugger I can see the data in DCF record area.
Now I want to add a new a new record using again cmm file, would you please inform which one should I use from the following:
1)
;data.set 0x00400300 %QUAD 0x05AA55AF00000000 ;DCF Start Record
; data.set 0x00400310 %QUAD 0xD3FEA98B00080008 ;STCU SKU Key 1
data.set 0x00400318 %QUAD 0x2C01567400080008 ;
In above case the first 2 records are commented as I do not want to write the area which is already written.
2)
data.set 0x00400300 %QUAD 0x05AA55AF00000000 ;DCF Start Record
data.set 0x00400310 %QUAD 0xD3FEA98B00080008 ;STCU SKU Key 1
data.set 0x00400318 %QUAD 0x2C01567400080008 ;
In above case I have added new record keeping the old records as it is. If I do this way then will I face any problem, as I am trying to write the same record with same value again in OTP area or will it be fine?
MCU : MPC5746R
Debugger : Laughter Bach
Hi,
for add a record is enough to enter record on first empty space in UTEST memory starting from 0x400300.
Exactly here it is 0x400318
Lauterbach example :
d.s 0x400318 %QUAD 0x2C01567400080008
But for your particular case, you want to configure STCU2, then you must add 2 keys in order to unlock STCU2 control registers for write.
Peter