WARNING 1: Use censorship feature very carefully, because an inappropriate usage can lead in making the device useless!!! Thoroughly read all instructions before use!!!
WARNING 2: Version of ICDPPCNEXUS debugger that is included with CodeWarrior 2.10 is not capable to enable debug on certain devices including MPC5604B. Workaround is either using of Codewarrior 10.6 or using of PKGPPCNEXUS debugger - can be downloaded from P&E Microcomputer Systems
WARNING 3: In case TRACE32 debugger is being used (Lauterbach), it is needed to have updated TRACE32 software. TRACE32 releases 02/2015 and 09/2016..02/2018 may not be able to access to censored device. LAUTERBACH DEVELOPMENT TOOLS
The example consists of 2 parts and document describing how to access censored device via JTAG with using of PeMicro or Lauterbach debugger:
1) MPC5604B-Censor_device-CW210:
********************************************************************************
* Detailed Description:
* The example code reprogram content of shadow flash to enable censorship.
* After succesful operation LED1 is lighting. After power-on-reset the device
* is censored with private 0xFEED_FACE_CAFE_BEEF. Subsequently the access can be
* allowed by enabling debug of censored device as decipted in attached pdf
* document. On this device password must be entered in reverse order i.e.
* 0xCAFE_BEEF_FEED_FACE. Shadow flash re-programming code must be executed from
* internal RAM.
* ------------------------------------------------------------------------------
2) MPC5604B-Uncensor_device-CW210:
********************************************************************************
* Detailed Description:
* Supposing the device is censored by example MPC5604B-Censor_device-CW210
* Firstly it is needed to enabled debug of censored device as decipted in
* attached pdf document. On this device password must be entered in reverse
* order i.e.0xCAFE_BEEF_FEED_FACE. MPC5604B_run_from_ram.cmm script does it by
* command SYStem.option.keycode 0xCAFEBEEFFEEDFACE.
* Then run this code to uncensor the device. After succesful operation LED1 is
* lighting. After power-on-reset the device is uncensored and subsequent access
* will be without password. Shadow flash re-programming code must be executed
* from internal RAM.
* ------------------------------------------------------------------------------