Locking Sections of the LPC55S2x Flash

cancel
Showing results for 
Search instead for 
Did you mean: 

Locking Sections of the LPC55S2x Flash

Jump to solution
406 Views
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 Kudos
1 Solution
402 Views
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

View solution in original post

0 Kudos
5 Replies
403 Views
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 Kudos
399 Views
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 Kudos
396 Views
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 Kudos
385 Views
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 Kudos
372 Views
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 Kudos