Hi All,
I am working on S32K148 chip and had accidentally written the Program Flash Protection Registers (FPROT0 - FPROT3) with 0. Post this, I couldn't program the chip through debugger.
Is there a way where this protection can be removed through design studio utility, since even the JTAG connection is not possible post this?
Hi sgp_118,
Did you rewrite the FPROT registers or the FPROT bytes in the Flash configuration field?
Either way, if you FSEC_MEEN is not disabled, you should be able to mass erase the MCU.
S32K1xx RM rev.12
AN12130 Production Flash Programming Best Practices for S32K1xxMCUs
What debugger do you have?
And what error message do get from the IDE when the debugger is connecting?
Thanks,
BR, Daniel
Hi Daniel,
Unfortunately all the registers in the region 0x400 - 0x40C are overwritten with 0s in the board
I am using S32K DS with P&E micro debugger.
Regards,
Guru
Hi Guru,
0x00 at 0x40C means that the MCU is secure but Mass Erase is enabled.
So, the debugger should be able to mass erase the MCU unless there is another issue like allocated CSEc keys.
AN12130 Production Flash Programming Best Practices for S32K1xx MCUs
BR, Daniel