Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

LPC2114 code protection?

LPC2114 code protection?

2005-04-26 by Ralf Knorr

Hi, all together
this is the first time I write into the forum group.
I followed the discussion about code protection. Has anyone informations 
about LPC2114 code protection possibility?
I found the same informations in the data sheet as Stefano Coluccini 
wrote in his mail.
Regards,
Ralf

RE: [lpc2000] LPC2114 code protection?

2005-04-26 by Hugh O'Keeffe

Here are Ashling's 2 cents on Code Protection (particularly relevant if
using GNU as opposed to KEIL). This is taken from our FAQ at
<http://www.ashling.com/support/lpc2000//knowledge_base.html>
http://www.ashling.com/support/lpc2000//knowledge_base.html
 
Hugh @ www.ashling.com/support/lpc2000/ 
 
 <http://www.ashling.com/support/lpc2000//knowledge_base.html#> How do I
enable LPC2000 Flash Read protection? 64-pin/144-pin LPC2000 devices with a
Boot Loader ID >= 1.6 have flash Read Protection (you can check your
device's ID using Ashling's FlashLPC utility (which works via a direct
LPC2000 UART connection). Code read protection is enabled by programming the
flash address location 0x1FC (User flash sector 0) with value 0x87654321
(2271560481 Decimal). If Read Protection is enabled then the device has to
be fully erased (thus disabling Read Protection) before it can be
reprogrammed. FlashLPC v1.0.2 or greater fully supports flash programming
LPC2000 based devices with flash read protection (if read protection is
enabled then the device has to be fully erased (thus disabling read
protection) before it can be reprogrammed). Please Note: Once read
protection is enabled it will not be possible to connect to the LPC2000
device using PathFinder as the on-chip LPC2000 JTAG interface is disabled.
If you wish to connect then you need to fully erase the on-chip LPC2000
flash using FlashLPC. 

The easiest way to enable flash protection is to ensure your program image
file contains the value 0x87654321 at address 0x1FC. This can be done in
your GNU Linker script using the LONG directive as follows:

.text : { 

/* define symbol name _ftext for start of code */

_ftext = ABSOLUTE(.); 

/* first object is the boot exception vector table */ 

obj/startup.o (.text) /* Note: obj is object file directory as definded in
"Build - Configurations" */ 

/* set location 0x1FC to 0x87654321 to enable Code Protection */ 

. = 0x1FC ; 
LONG(0x87654321) 

Please ensure you place the directive in the appropriate place (i.e. after
your start up code (obj/startup.obj)).
Show quoted textHide quoted text
-----Original Message-----
From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com] On Behalf Of
Ralf Knorr
Sent: 26 April 2005 13:25
To: LPC 2000 Forum on Yahoo
Subject: [lpc2000] LPC2114 code protection?


  Hi, all together
this is the first time I write into the forum group.
I followed the discussion about code protection. Has anyone informations 
about LPC2114 code protection possibility?
I found the same informations in the data sheet as Stefano Coluccini 
wrote in his mail.
Regards,
Ralf


  _____  

Yahoo! Groups Links


*	To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2000/
  

*	To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
<mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
  

*	Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.