Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: yuligar on June 16, 2010, 06:01:27 AM

Title: Code Read Protection for LPC2368
Post by: yuligar on June 16, 2010, 06:01:27 AM
Hello
I'm trying to set read protection code in LPC2368

I have read the post regarding that read code protections uses four bytes at a specific memory location

But I can't change the .hex file, Still how can I enable read code protection?
I'm looking for version for old command HEXFILE(CODEREADPROTECTION)
Thanks in advance


Title: Re: Code Read Protection for LPC2368
Post by: Andy Ayre on June 16, 2010, 09:04:59 AM
Assuming the hex file doesn't use those locations, you can patch it by adding a single record to the end to set the CRP to the value you want. Or, you could write a Just-in-Time module to generate the record automatically every time the hex file is programmed.

Andy
Title: Re: Code Read Protection for LPC2368
Post by: yuligar on June 17, 2010, 01:21:47 AM
Hello
Sorry I didn't quite get it

What command should I use in (command line) to set read code protection?
I can't add/touch the .hex file

Thanks
Title: Re: Code Read Protection for LPC2368
Post by: Andy Ayre on June 17, 2010, 09:12:34 AM
I've given you two options. The third - which is the easiest of course - is to go back to the software engineer and have them add the CRP value in to the project. It's a trivial change that will take less than one minute to do.

Andy