Memory protection registers NXP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Memory protection registers NXP

1,611 次查看
sgp_118
Contributor II

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? 

0 项奖励
回复
3 回复数

1,456 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

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

pastedImage_3.png

AN12130 Production Flash Programming Best Practices for S32K1xxMCUs

pastedImage_6.png

What debugger do you have?

And what error message do get from the IDE when the debugger is connecting?

Thanks,

BR, Daniel

1,456 次查看
sgp_118
Contributor II

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,

GuruP&E_Error.png

0 项奖励
回复

1,456 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Guru,

0x00 at 0x40C means that the MCU is secure but Mass Erase is enabled.

pastedImage_1.png

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 

pastedImage_1.png

BR, Daniel