CRP linker script generation

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

CRP linker script generation

1,018 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jdupre on Fri Feb 14 14:14:14 MST 2014
How is the CRP code generated for the linker script when CRP is checked?  Is it user editable?   I'd like to modify it to throw a warning when CRP is enabled and CRP_WORD != 0xFFFFFFFF
0 项奖励
回复
3 回复数

989 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Feb 21 12:39:00 MST 2014
Probably the simplest way to obtain a warning is to modify the crp.c file generated by the project wizards to use a #warning

Alternatively, you could use a linker script template and replace the "/* INSERT CRP */" with whatever you require.

Regards,
LPCXpresso Support
0 项奖励
回复

989 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jdupre on Fri Feb 21 12:18:41 MST 2014
I know how to use the existing CRP support.  I was asking about customizing it.  Is there any access to the scripts(?) (or is it all "hard-coded?) that generate the different sections that are fed to the linker template?  Or is modifying the linker template the only customization that an end-user can do?

Thanks,

- Joe
0 项奖励
回复

989 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Feb 14 15:41:03 MST 2014
For details on LPCXpresso's CRP support, see:

http://www.lpcware.com/content/faq/lpcxpresso/code-read-protect-crp

Regards,
LPCXpresso Support
0 项奖励
回复