Memory protection registers NXP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Memory protection registers NXP

1,341件の閲覧回数
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,186件の閲覧回数
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,186件の閲覧回数
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,186件の閲覧回数
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