CRP linker script generation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CRP linker script generation

1,021 Views
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 Kudos
Reply
3 Replies

992 Views
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 Kudos
Reply

992 Views
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 Kudos
Reply

992 Views
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 Kudos
Reply