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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

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-recordpastedImage_1.png
  • 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\pastedImage_2.pngpastedImage_3.png
  • Start debug session. You can check if memory is rewritten properly (in this case I write zeroes to Low/Mid block): pastedImage_4.png
Labels (1)
Attachments
No ratings
Version history
Last update:
‎05-23-2018 07:04 AM
Updated by: