I am trying to erase flash before programming with PE Multilink in S32Design Studio.
Looking at
C:\NXP\S32DS_Power_v2017.R1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.3.201803261737\win32\gdi\P&E\nxp_mpc5777m_1x32x1984k_cflash.pcp
There does not seem to be any scripting to erase flash sectors.
Other chips seem to have some support although most seem to be commented out.
Calypso has:
;Low Blocks(0..B) 5-16k,2-32k,4-64k
;USER=LB Low Block Erase 1Block > /00000000/0000000B/
;High Blocks(0..E) 14-256k
;USER=HB High Block Erase 2Block > /00000000/0000000E/
Where if needing to enable, the lines with ÜSER= would not be commented.
The problem is that every time I program the part with a new flash binary all my old register setting are still maintained. Maybe there is a different way to fully blow away the chip prior to flashing a new binary??