Flash Magic Forum
September 09, 2010, 01:19:45 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Code Read Protection for LPC2368  (Read 619 times)
yuligar
Newbie
*
Posts: 4


View Profile
« on: June 16, 2010, 02:01:27 PM »

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


Logged
Andy Ayre
ESAcademy Staff
Sr. Member
*****
Posts: 1629


View Profile WWW Email
« Reply #1 on: June 16, 2010, 05:04:59 PM »

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
Logged

Embedded Systems Academy, Inc.
support at esacademy dot com
yuligar
Newbie
*
Posts: 4


View Profile
« Reply #2 on: June 17, 2010, 09: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
Logged
Andy Ayre
ESAcademy Staff
Sr. Member
*****
Posts: 1629


View Profile WWW Email
« Reply #3 on: June 17, 2010, 05:12:34 PM »

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
« Last Edit: June 17, 2010, 05:14:27 PM by Andy Ayre » Logged

Embedded Systems Academy, Inc.
support at esacademy dot com
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!