HOWTO: MPC5777C - Low/Mid Flash block erase via PE Micro

Document created by Jiri Kral Employee on May 23, 2018Last modified by Jiri Kral Employee on May 23, 2018
Version 3Show Document
  • View in full screen mode

PE Micro is not able erase unused FLASH block - typically if your application resist in Large block and Low/Mid block is used for data storage. As a workaround you can flash empty s-record into desired area. 


  • Create new empty project for MPC5777C for flashing custom .srecord
  • Copy empty s-record (in attachment) into project folder. If you need different address range or s-record values - feel free modify attached python script and generate your own s-record. 
  • Open debug configuration and modify C/C++ Application to empty s-record
  • Add custom flash algorithm nxp_mpc5777c_1x32x64k_eeprom_highspeed.pcp via Debug -> Advanced Options. Scripts are lcated in [S32DS_INSTALL_DIR]\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.3.201803261737\win32\gdi\P&E\
  • Start debug session. You can check if memory is rewritten properly (in this case I write zeroes to Low/Mid block): 
1 person found this helpful