LPC4357 CRP加密设置

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

LPC4357 CRP加密设置

3,276 次查看
skysky
Contributor III

想用LPC4357的CRP2级加密,在启动代码.s文件中使能了这段代码

QQ截图20170823160552.png

但是,在生成的.bin文件中,在0x02FC处,并没有发现此处值被设置成0x87654321

而且,并不是生成单一的bin文件,而是分成了两个文件

QQ截图20170823160820.png

QQ截图20170823160833.png

想要实现CRP保护,要怎么操作呢?

4 回复数

3,101 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi sky sky,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.
Please referring the application note: Code Read Protection in LPC1800 and LPC4300.
Have a great day,

TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

3,101 次查看
skysky
Contributor III

hi jeremy:

谢谢你的回复,今早想了一下发现是|.ARM.__at_0x1A0002FC|这个标号地址问题,自己改了下就成功了。

另外一个问题是,看文档上说:

Program the CRP pattern at address 0x1A00 02FC for flash bank A and at 0x1B00 02FC for flash bank B.

这句是什么意思呢?

是说在BANK-B上写入CRP值也是可以的?

还是可以两个BANK进行分别的保护?

0 项奖励
回复

3,101 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi sky sky,

你可以这么理解,因为LPC4357有两个Flash bank, bank A 和bank B,当任意的bank作为启动bank,即工程存放的bank,在便宜0x00 02FC处都可以设置CRP,而且是对于整个Flash bank有效。
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

3,101 次查看
skysky
Contributor III

hi jeremy:

  明白了,谢谢你的回复

0 项奖励
回复