Flash protection S32k144

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

Flash protection S32k144

ソリューションへジャンプ
2,835件の閲覧回数
lohrsistemas
Contributor IV

Hi,

How do I program the options bytes to protect the flash reading?

Thanks.

1 解決策
2,053件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

In this case, change the FSEC byte. Default value is 0xFE which means the device is not secured (you can access everything via JTAG). Last two bits say if the device is secured or not:

pastedImage_1.png

Change the value from 0xFFFF7FFE to 0xFFFF7FFC or 0xFFFF7FFD or 0xFFFF7FFF and the device will be secured. You can enable backdoor key access if needed.

Regards,

Lukas

元の投稿で解決策を見る

4 返答(返信)
2,053件の閲覧回数
lohrsistemas
Contributor IV

Thank you Lukas,

I really appreciate your prompt response and help.

Regards.

0 件の賞賛
返信
2,053件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

if you use S32 Design Studio, open the startup_S32K144.S file and search for this section:

pastedImage_3.png 

Just modify the words as you need.

pastedImage_2.png

Regards,

Lukas

0 件の賞賛
返信
2,053件の閲覧回数
lohrsistemas
Contributor IV

Hi Lukas, thanks for your feedback.

I'm using IAR plugin, so, my startup_S32K144.S is a little diferent.

pastedImage_1.png

However, I need to protect the flash against reading, but I have to program and delete it normally via JTAG. My code is confidential, so, customers cant read.

To do this, how should I set the bits described in the print screen?

Thanks.

0 件の賞賛
返信
2,054件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

In this case, change the FSEC byte. Default value is 0xFE which means the device is not secured (you can access everything via JTAG). Last two bits say if the device is secured or not:

pastedImage_1.png

Change the value from 0xFFFF7FFE to 0xFFFF7FFC or 0xFFFF7FFD or 0xFFFF7FFF and the device will be secured. You can enable backdoor key access if needed.

Regards,

Lukas