Author Topic: Code Read Protection for LPC2368  (Read 5513 times)

yuligar

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Code Read Protection for LPC2368
« 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



Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Code Read Protection for LPC2368
« Reply #1 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
Embedded Systems Academy, Inc.
support at esacademy dot com

yuligar

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: Code Read Protection for LPC2368
« Reply #2 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

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Code Read Protection for LPC2368
« Reply #3 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
« Last Edit: June 17, 2010, 09:14:27 am by Andy Ayre »
Embedded Systems Academy, Inc.
support at esacademy dot com