Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | LPC2114 code protection?

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

LPC2114 code protection? - Ralf Knorr - Apr 26 8:25:00 2005

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





(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


RE: LPC2114 code protection? - Hugh O'Keeffe - Apr 26 8:53:00 2005

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)).

-----Original Message-----
From: lpc2000@lpc2... [mailto:lpc2000@lpc2...] 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 _____

> .

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




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )