![Qorivva MPC5 Series Скачать руководство пользователя страница 74](http://html1.mh-extra.com/html/qorivva/mpc5-series/mpc5-series_manual_3255432074.webp)
Qorivva MPC5xxx/SPC5xx Debugger and NEXUS Trace
74
©1989-2021 Lauterbach GmbH
On some processors of the SPC58X series, the UTEST sector has a 128 bit ECC granularity. Because of
this, an even number of DCF records (quad words) must be programmed. If the number of DCF records is
not a multiple of 2, a data alignment error will occur and FLASH will not be programmed. A dummy DCF
record can be added in order to get an even number of DCF records. Example:
A dummy DCF record
usually
can be one of the following. Please make sure to check with the processor
reference manual and/or processor manufacturer for the appropriate method.
•
The same DCF record as written to the first 64 bits of the 128 bit block (i.e. the same DCF record
is written twice).
•
A DCF record with an invalid chips select (refer to the processor reference manual for
invalid/unused DCF chip selects).
As an additional measure of safety, the programming script could be extended to only program the OTP if it
is still unprogrammed. Doing so can help to assure that no illegal combinations of DCF records will be
programmed. Example:
Programming an UTEST Sector which is not set to OTP
The UTEST sector can be either OTP or erasable, depending on factory configuration or custom
configuration. Please check the processor reference manual for details.
;Step 0 and 1 as above.
;Step 2: Program OTP
(128 bit ECC granularity)
FLASH.Program 0x00400000--0x00403FFF /OTP
Data.Set %Quad <address> %Quad
<dcf-record1> <dcf-record2>
;and/or alternatively:
Data.Set %Quad <address> %Quad
<dcf-record> <dummy-dcf-record>
FLASH.Program off
Data.Set 0x00400000--0x00403FFF %Quad 0xFFFFFFFFFFFFFFFF /DIFF
IF FOUND()
(
PRINT "OTP already programmed, aborting."
)
ELSE
(
FLASH.Program
0x00400000--0x00403FFF /OTP
Data.LOAD.Binary
otpodata.bin
FLASH.Program off
)