Locking Sections of the LPC55S2x Flash

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

Locking Sections of the LPC55S2x Flash

跳至解决方案
1,273 次查看
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 解答
1,269 次查看
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 回复数
1,270 次查看
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 项奖励
回复
1,266 次查看
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 项奖励
回复
1,263 次查看
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 项奖励
回复
1,252 次查看
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 项奖励
回复
1,239 次查看
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 项奖励
回复