Qorivva MPC5xxx/SPC5xx Debugger and NEXUS Trace
69
©1989-2021 Lauterbach GmbH
This example shows how to perform advanced debugger/target configuration. The bold lines show some
possible advanced settings (use only when appropriate!):
Requirements due to FLASH ECC Protection
The on-chip FLASH of MPC55XX/56XX implements an ECC error detection/protection. Therefore, the
minimum program size is two consecutive 32-bit words, aligned on a 0-modulo-8 byte address. The resulting
64-bit units
must not be programmed more than once
after each erase cycle. If such a unit is
programmed more than once, the unit can become inaccessible due to ECC detection.
Multiple programming of 64-bit units can occur, if
•
a file is programmed (e.g. ELF, SRECORD), which contains memory blocks which are not
aligned to 0-modulo-8 byte addresses,
•
several files are programmed with overlapping address ranges.
to program flash.
before programming the device.
This way TRACE32 will ensure that no 64-bit unit will be programmed more than once. The provided flash
example scripts also use
If the FLASH
already contains ECC errors
, please make sure to call
once before calling
. Starting with Build 20739,
supports programming FLASH with
ECC errors without prior call of
.
The FLASH can contain ECC errors, if
•
the FLASH memory is damaged (in this case
might fail too)
•
64-bit units were programmed more than once
•
problems during programming (e.g. power fail, software issues)
•
it is a
new device
, which was never programmed/erased after factory tests
SYStem.RESet
SYStem.CPU MPC5676R
SYStem.Option WATCHDOG OFF
SYStem.CONFIG PortSHaring ON ;calibtration tool connected
SYStem.CONFIG EXTWDTDIS HIGH ;disable external watchdog
SYStem.Up
;prepare flash programming
DO ~~/demo/powerpc/flash/mpc5676r.cmm
PREPAREONLY
SKIPCONFIG
;activate flash programming (erasing unused sectors)
FLASH.ReProgram ALL /Erase