Yahoo Groups archive

Lpc2000

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

Message

LPC2000 Flash protection example wanted

2005-12-19 by phlpcmicro

Hi All,

I am looking for code examples on how to set Code Protection on.

Eg  address  0x1FC   = 0x87654321

For GCC, Keil and IAR


Eg Does this look right?
// write to address macro
#define REG(addr) (*(static unsigned long *)(addr))

REG(0x1FC) = 0x87654321;

Or  would it be better loaded in the startup file.

Any pointers (pardon the phun..)  would be appreciated.


Thanks in Advance

Joe

Attachments

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.