Locking Sections of the LPC55S2x Flash

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

Locking Sections of the LPC55S2x Flash

跳至解决方案
896 次查看
sachin_patel
Contributor III

Hi,

Is it possible to lock specific sections of the LPC55S2x flash (the user data region)? If the flash can be locked, can it be unlocked from within the locked portion of flash?

Kind regards,

Sachin Patel

0 项奖励
1 解答
892 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Sachia,

As far as I know that the LPC55S2x does not support the feature to lock a page, or section.

Hope it can help you

BR

XiangJun Rong

在原帖中查看解决方案

0 项奖励
5 回复数
893 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Sachia,

As far as I know that the LPC55S2x does not support the feature to lock a page, or section.

Hope it can help you

BR

XiangJun Rong

0 项奖励
889 次查看
sachin_patel
Contributor III

Hi @xiangjun_rong

Thanks for your response.

What choices do I have regarding preventing change to my software?

Can I then use the IAP FFR Driver through the CMPA configuration to enforce a signature check and SHA256 validation on the image on boot?
What happens if this check fails?

Thanks,

Sachin Patel

0 项奖励
886 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls refer to the an13037.pdf from the link:

https://www.nxp.com.cn/docs/en/application-note/AN13037.pdf

It talks about how to block SWD and protect customer code in flash.

BR

XiangJun rong

0 项奖励
875 次查看
sachin_patel
Contributor III

Hi,

This is not what I am asking about.

Is there a way to ensure that the flash remains unchanged during operation, such as a flash write protect?

Secure Boot is an option, but it does not ensure the image is not altered at runtime, only on startup, which isn’t quite what I am looking for.

Thanks,

Sachin Patel

0 项奖励
862 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Unfortunately, there is not a mechanism to protect flash from erasing/programming.

Pls refer to the Chapter  5: LPC55S6x/LPC55S2x/LPC552x Flash in UM11126.pdf.

Hope it can help you

BR

XiangJun Rong

0 项奖励