NOTICE: This may NOT work with the newer versions of PEmicro eclipse plugin (e.g. with S32DS for Power 2017.R1).
Please use an alternative way described here: https://community.nxp.com/thread/486662?commentID=1068206#comment-1068206
This document describes how to program DCF record into UTEST flash with S32DS for Power v1.1+ using PEMICRO Probe (OpenSDA, USB Multilink, USB Multilink FX...)
In S32 Design Studio for Power v1.2+ the Pemicro plugin update step is not required since it's already included so you can skip Step 1)
Step 1) Update Pemicro Plugin.
See the post below - it's about ARM version of S32DS but the update process for S32DS for Power is exactly the same. You just need is to select e200 component instead of ARM
Step 2) Download and extract Flash programming algorithms for MPC5xxx directly from PEMICRO website into your computer.
Step 3) Create or reuse an existing S32DS project to connect to the board and inspect the existing content of UTEST/DCF user area memory section.
See e.g. MPC5644P example below. Next available address for DCF record of this specific chip is 0x0040_0220 .. 0x0040_0227
Step 3a) You can export this 64bit free region into a srecord file e.g. MyNewDCF.srec
Step 3b) Adjust Srecord file created to match with DCF record you intend to write. Don't forget to re-calculate Srec checksum.
e.g. NOP 0x00000000 00000000
S3 0D 004002200 0000 0000 0000 0000 90
Step 4) Create/clone an existing debugger configuration that will load DCF into UTEST and adjust its parameters.
Step 4a) Change the debugger configuration Name and enter the srecord path + file name adjusted in step 3b) as a C/C++ application.
Step 4b) Debugger Tab -> Advanced Options - select Use Alternative Algorithm and browse the location where you extracted flash algorithms at step 2)
Step 4c) Adjust Startup options - Disable Load Symbols and Run on Reset since this configuration is only for programming DCF record and not for debugging.
Step 5) Now press Debug button and it should program your DCF record into UTEST flash memory. After debug session is established you can check if the DCF has been programmed correctly into DCF user area in Memory View.
The device will process these DCF records during the system reset sequence before the CPU leaves reset.